]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
Mirroring: There was a problem that the title variable wasn't cleared so it could...
[friendica-addons.git] / statusnet / statusnet.php
index 6b4c8010f2411304bba68b0ba8a8e5f70afa48d7..bd2312f7ae97c9337de495ea1d222fa7497d2a6d 100755 (executable)
@@ -855,6 +855,9 @@ function statusnet_fetchtimeline($a, $uid) {
                if ($first_time)
                        continue;
 
+               if ($post->source == "activity")
+                       continue;
+
                if (is_object($post->retweeted_status))
                        continue;
 
@@ -865,6 +868,7 @@ function statusnet_fetchtimeline($a, $uid) {
                        $_SESSION["authenticated"] = true;
                        $_SESSION["uid"] = $uid;
 
+                       unset($_REQUEST);
                        $_REQUEST["type"] = "wall";
                        $_REQUEST["api_source"] = true;
                        $_REQUEST["profile_uid"] = $uid;
@@ -872,6 +876,8 @@ function statusnet_fetchtimeline($a, $uid) {
 
                        //$_REQUEST["date"] = $post->created_at;
 
+                       $_REQUEST["title"] = "";
+
                        $_REQUEST["body"] = $post->text;
                        if (is_string($post->place->name))
                                $_REQUEST["location"] = $post->place->name;