sforkowany z mirror/friendica
commit
4c3d28488f
|
@ -163,7 +163,7 @@ class PageInfo
|
|||
}
|
||||
}
|
||||
|
||||
$text .= ']' . $data['text'] . '[/attachment]';
|
||||
$text .= ']' . $data['text'] ?? '' . '[/attachment]';
|
||||
|
||||
$hashtags = '';
|
||||
if (!empty($data['keywords'])) {
|
||||
|
|
|
@ -272,6 +272,7 @@ class Processor
|
|||
|
||||
$item = self::processContent($activity, $item);
|
||||
if (empty($item)) {
|
||||
Logger::info('Message was not processed');
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue