https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2f874
)
fromgplus: Don't fetch messages for the first time
author
Michael Vogel
<icarus@dabo.de>
Wed, 27 Nov 2013 22:07:15 +0000
(23:07 +0100)
committer
Michael Vogel
<icarus@dabo.de>
Wed, 27 Nov 2013 22:07:15 +0000
(23:07 +0100)
fromgplus/fromgplus.php
patch
|
blob
|
history
diff --git
a/fromgplus/fromgplus.php
b/fromgplus/fromgplus.php
index
5269f7a
..
711a73c
100644
(file)
--- 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