Fix: Images must not be removed on preview

pull/12446/head
Michael 2022-12-17 05:48:09 +00:00
rodzic 2ae3ae0b8a
commit 2e6ab0e312
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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'];