fromgplus: Don't post posting that are too young. It could happen that the picture upload isn't finished, when the post is being fetched.

This commit is contained in:
Michael Vogel 2014-07-22 00:38:52 +02:00
parent 67cf047ef7
commit 418ce62d7b

View file

@ -391,6 +391,12 @@ function fromgplus_fetch($a, $uid) {
if (strtotime($item->published) <= $initiallastdate) if (strtotime($item->published) <= $initiallastdate)
continue; continue;
// Don't publish items that are too young
if (strtotime($item->published) > (time() - 3*60)) {
logger('fromgplus_fetch: item too new '.$item->published);
continue;
}
if ($lastdate < strtotime($item->published)) if ($lastdate < strtotime($item->published))
$lastdate = strtotime($item->published); $lastdate = strtotime($item->published);