]> git.mxchange.org Git - friendica.git/commitdiff
Fix image grid in shared Friendica posts
authorMichael <heluecht@pirati.ca>
Sat, 17 Dec 2022 22:07:14 +0000 (22:07 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 17 Dec 2022 22:07:14 +0000 (22:07 +0000)
src/Model/Item.php

index 33ba8ee7a4d1b849631bec1e245d17c4f91f8fc9..112c36a9c836bc67b4ff21657552d12d046f6c8a 100644 (file)
@@ -3030,6 +3030,7 @@ class Item
                $shared = DI::contentItem()->getSharedPost($item, $fields);
                if (!empty($shared['post'])) {
                        $shared_item  = $shared['post'];
+                       $shared_item['body'] = Post\Media::removeFromEndOfBody($shared_item['body']);
                        $quote_uri_id = $shared['post']['uri-id'];
                        $shared_links[] = strtolower($shared['post']['uri']);
                        $item['body'] = BBCode::removeSharedData($item['body']);