From c2e57c5c0ee9f2f289b5d228afe876b4bcf6db1f Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Fri, 14 Oct 2022 04:43:46 +0000
Subject: [PATCH] Return the pageinfo when feed is shared

---
 src/Content/Item.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Content/Item.php b/src/Content/Item.php
index 1bf8410cd4..6cbcb63695 100644
--- a/src/Content/Item.php
+++ b/src/Content/Item.php
@@ -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']);
@@ -675,7 +677,7 @@ class Item
 			if (!empty($shared['guid']) && ($encaspulated_share = self::createSharedPostByGuid($shared['guid']))) {
 				$item['body'] = preg_replace("/\[share.*?\](.*)\[\/share\]/ism", $encaspulated_share, $item['body']);
 			}
-	
+
 			$item['body'] = HTML::toBBCode(BBCode::convertForUriId($item['uri-id'], $item['body'], BBCode::ACTIVITYPUB));
 		}