Merge pull request #11990 from annando/share-feed
Return the pageinfo when feed is shared
This commit is contained in:
commit
1fd9558e60
1 changed files with 4 additions and 2 deletions
|
@ -656,7 +656,9 @@ class Item
|
||||||
*/
|
*/
|
||||||
public function createSharedBlockByArray(array $item): string
|
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['guid'] = '';
|
||||||
$item['uri'] = '';
|
$item['uri'] = '';
|
||||||
$item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
|
$item['body'] = Post\Media::addAttachmentsToBody($item['uri-id'], $item['body']);
|
||||||
|
|
Loading…
Reference in a new issue