]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
fromgplus: Don't fetch messages for the first time
[friendica-addons.git] / fromgplus / fromgplus.php
index 5269f7a079f47c509119a34c152e1d0838b665dc..711a73c3acd2d7c26d0d082018fecdfb4be9dff9 100644 (file)
@@ -330,6 +330,8 @@ function fromgplus_fetch($a, $uid) {
 
        $initiallastdate = get_pconfig($uid,'fromgplus','lastdate');
 
+       $first_time = ($initiallastdate == "");
+
        $lastdate = 0;
 
        if (!is_array($activities->items))
@@ -344,6 +346,9 @@ function fromgplus_fetch($a, $uid) {
                if ($lastdate < strtotime($item->published))
                        $lastdate = strtotime($item->published);
 
+               if ($first_time)
+                       continue;
+
                if ($item->access->description == "Public")
 
                        // Loop prevention - ignore postings from HootSuite