Merge pull request #12446 from annando/preview-image
Fix: Images must not be removed on preview
This commit is contained in:
commit
c69705d34e
|
@ -3016,7 +3016,11 @@ class Item
|
|||
$item['hashtags'] = $tags['hashtags'];
|
||||
$item['mentions'] = $tags['mentions'];
|
||||
|
||||
$body = $item['body'] = Post\Media::removeFromEndOfBody($item['body'] ?? '');
|
||||
if (!$is_preview) {
|
||||
$item['body'] = Post\Media::removeFromEndOfBody($item['body'] ?? '');
|
||||
}
|
||||
|
||||
$body = $item['body'];
|
||||
|
||||
$fields = ['uri-id', 'uri', 'body', 'title', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink', 'network', 'has-media', 'quote-uri-id', 'post-type'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user