From: Michael Vogel Date: Wed, 27 Nov 2013 22:07:15 +0000 (+0100) Subject: fromgplus: Don't fetch messages for the first time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1974b5d1a89dd8729dd2510e472717e2b7250dcf;p=friendica-addons.git fromgplus: Don't fetch messages for the first time --- diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index 5269f7a0..711a73c3 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -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