瀏覽代碼

Merge pull request #9245 from annando/notice

Fix notice "Undefined index: gravity"
tags/2020.09
Hypolite Petovan 2 月之前
committed by GitHub
父節點
當前提交
4c3d28488f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 3 個檔案被更改,包括 6 行新增1 行删除
  1. +1
    -1
      src/Content/PageInfo.php
  2. +1
    -0
      src/Protocol/ActivityPub/Processor.php
  3. +4
    -0
      src/Protocol/ActivityPub/Receiver.php

+ 1
- 1
src/Content/PageInfo.php 查看文件

@@ -163,7 +163,7 @@ class PageInfo
}
}

$text .= ']' . $data['text'] . '[/attachment]';
$text .= ']' . $data['text'] ?? '' . '[/attachment]';

$hashtags = '';
if (!empty($data['keywords'])) {


+ 1
- 0
src/Protocol/ActivityPub/Processor.php 查看文件

@@ -272,6 +272,7 @@ class Processor

$item = self::processContent($activity, $item);
if (empty($item)) {
Logger::info('Message was not processed');
return [];
}



+ 4
- 0
src/Protocol/ActivityPub/Receiver.php 查看文件

@@ -487,6 +487,10 @@ class Receiver
$object_data['thread-completion'] = true;

$item = ActivityPub\Processor::createItem($object_data);
if (empty($item)) {
return;
}

$item['post-type'] = Item::PT_ANNOUNCEMENT;
ActivityPub\Processor::postItem($object_data, $item);



Loading…
取消
儲存