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:
parent
67cf047ef7
commit
418ce62d7b
|
@ -391,6 +391,12 @@ function fromgplus_fetch($a, $uid) {
|
|||
if (strtotime($item->published) <= $initiallastdate)
|
||||
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))
|
||||
$lastdate = strtotime($item->published);
|
||||
|
||||
|
|
Loading…
Reference in a new issue