fbpost/statusnet/twitter: When messages are fetched the first time for mirroring, then don't post them

This commit is contained in:
Michael Vogel 2013-01-07 19:30:18 +01:00
parent 75f6b10c4e
commit 52d585863a
3 changed files with 15 additions and 0 deletions

View file

@ -800,6 +800,8 @@ function statusnet_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;
@ -810,6 +812,9 @@ function statusnet_fetchtimeline($a, $uid) {
if ($post->id > $lastid)
$lastid = $post->id;
if ($firsttime)
continue;
if (is_object($post->retweeted_status))
continue;