Fix: Images must not be removed on preview
This commit is contained in:
parent
2ae3ae0b8a
commit
2e6ab0e312
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue