Return the pageinfo when feed is shared

This commit is contained in:
Michael 2022-10-14 04:43:46 +00:00
parent 1cc3fa6d77
commit c2e57c5c0e

View File

@ -656,7 +656,9 @@ class Item
*/
public function createSharedBlockByArray(array $item): string
{
if (!in_array($item['network'] ?? '', Protocol::FEDERATED)) {
if ($item['network'] == Protocol::FEED) {
return PageInfo::getFooterFromUrl($item['plink']);
} elseif (!in_array($item['network'] ?? '', Protocol::FEDERATED)) {
$item['guid'] = '';
$item['uri'] = '';
$item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);