]> git.mxchange.org Git - friendica-addons.git/blobdiff - statusnet/statusnet.php
fbpost/statusnet/twitter: When messages are fetched the first time for mirroring...
[friendica-addons.git] / statusnet / statusnet.php
index 6a00d3df8f30ddf9b24e7fc31c209cf2075f7488..d5700710a93b979a5fd125a87f47be238d45f75d 100755 (executable)
@@ -800,6 +800,8 @@ function statusnet_fetchtimeline($a, $uid) {
 
        $parameters = array("exclude_replies" => true, "trim_user" => true, "contributor_details" => false, "include_rts" => false);
 
+       $first_time = ($lastid == "");
+
        if ($lastid <> "")
                $parameters["since_id"] = $lastid;
 
@@ -810,6 +812,9 @@ function statusnet_fetchtimeline($a, $uid) {
                if ($post->id > $lastid)
                        $lastid = $post->id;
 
+               if ($firsttime)
+                       continue;
+
                if (is_object($post->retweeted_status))
                        continue;