]> git.mxchange.org Git - friendica.git/commitdiff
Only add images
authorMichael <heluecht@pirati.ca>
Fri, 22 Sep 2023 20:12:10 +0000 (20:12 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 22 Sep 2023 20:12:10 +0000 (20:12 +0000)
src/Model/Post/Engagement.php

index d55a09527f11cfbbbd73002c68e3d9b60207e63e..4c6f6e0e559b493cfb96067f664696382261036f 100644 (file)
@@ -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 {