]> git.mxchange.org Git - friendica-addons.git/commitdiff
Remove media to avoid duplicated images
authorMichael <heluecht@pirati.ca>
Thu, 9 Mar 2023 20:59:42 +0000 (20:59 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 9 Mar 2023 20:59:42 +0000 (20:59 +0000)
tumblr/tumblr.php

index 674d6e9ed6107bc57d46be85cd2c0a97bc3b7d19..41512ff2006b9c10fd1d39715e9a8b6b78f041f0 100644 (file)
@@ -359,6 +359,7 @@ function tumblr_send(array &$b)
                ];
 
                $body = BBCode::removeShareInformation($b['body']);
+               $body = Post\Media::removeFromEndOfBody($body);
 
                if ($photo !== false) {
                        $params['type'] = 'photo';