mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
fbpost/statusnet/twitter: When messages are fetched the first time for mirroring, then don't post them
This commit is contained in:
parent
75f6b10c4e
commit
52d585863a
3 changed files with 15 additions and 0 deletions
|
@ -1020,6 +1020,8 @@ function fbpost_fetchwall($a, $uid) {
|
|||
|
||||
$url = "https://graph.facebook.com/".$post_to_page."/feed?access_token=".$access_token;
|
||||
|
||||
$first_time = ($lastcreated == "");
|
||||
|
||||
if ($lastcreated != "")
|
||||
$url .= "&since=".urlencode($lastcreated);
|
||||
|
||||
|
@ -1031,6 +1033,9 @@ function fbpost_fetchwall($a, $uid) {
|
|||
if ($item->created_time > $lastcreated)
|
||||
$lastcreated = $item->created_time;
|
||||
|
||||
if ($first_time)
|
||||
continue;
|
||||
|
||||
if ($item->application->id == get_config('facebook','appid'))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue