fromgplus: Don't fetch messages for the first time

pull/165/head
Michael Vogel 2013-11-27 23:07:15 +01:00
parent cf2f874db1
commit 1974b5d1a8
1 changed files with 5 additions and 0 deletions

View 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