mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +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
|
@ -604,6 +604,8 @@ function twitter_fetchtimeline($a, $uid) {
|
|||
|
||||
$parameters = array("exclude_replies" => true, "trim_user" => true, "contributor_details" => false, "include_rts" => false);
|
||||
|
||||
$first_time = ($lastid == "");
|
||||
|
||||
if ($lastid <> "")
|
||||
$parameters["since_id"] = $lastid;
|
||||
|
||||
|
@ -614,6 +616,9 @@ function twitter_fetchtimeline($a, $uid) {
|
|||
if ($post->id_str > $lastid)
|
||||
$lastid = $post->id_str;
|
||||
|
||||
if ($firsttime)
|
||||
continue;
|
||||
|
||||
if (!strpos($post->source, $application_name)) {
|
||||
$_SESSION["authenticated"] = true;
|
||||
$_SESSION["uid"] = $uid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue