Merge pull request #12457 from annando/image-grid-shared

Fix image grid in shared Friendica posts
This commit is contained in:
Philipp 2022-12-17 23:30:10 +01:00 committed by GitHub
commit 9a8f6f2150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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']);