]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Update .drone.yml
[friendica-addons.git] / statusnet / statusnet.php
index 5601d864414377af45264999f2e68c3eead54feb..bb51e24ba6287bc2822a032ea0d4f8076cd44b43 100644 (file)
@@ -481,6 +481,8 @@ function statusnet_post_hook(App $a, &$b)
                        return;
        }
 
+       $b['body'] = Post\Media::addAttachmentsToBody($b['uri-id'], $b['body']);
+
        $api = DI::pConfig()->get($b["uid"], 'statusnet', 'baseapi');
        $hostname = preg_replace("=https?://([\w\.]*)/.*=ism", "$1", $api);
 
@@ -876,7 +878,7 @@ function statusnet_fetchtimeline(App $a, $uid)
 
                                $_REQUEST["title"] = "";
 
-                               $_REQUEST["body"] = PageInfo::searchAndAppendToBody($post->text, true);
+                               $_REQUEST["body"] = $post->text;
                                if (is_string($post->place->name)) {
                                        $_REQUEST["location"] = $post->place->name;
                                }