From: Michael Date: Fri, 22 Sep 2023 20:12:10 +0000 (+0000) Subject: Only add images X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c6d872964df81faa5d4952b604a3d360ac2897f;p=friendica.git Only add images --- diff --git a/src/Model/Post/Engagement.php b/src/Model/Post/Engagement.php index d55a09527f..4c6f6e0e55 100644 --- a/src/Model/Post/Engagement.php +++ b/src/Model/Post/Engagement.php @@ -159,7 +159,7 @@ class Engagement $body = preg_replace("~\[url\=.*\]https?:.*\[\/url\]~", '', $body); - $body = Post\Media::addAttachmentsToBody($item['uri-id'], $body); + $body = Post\Media::addAttachmentsToBody($item['uri-id'], $body, [Post\Media::IMAGE]); $text = BBCode::toPlaintext($body, false); do {