X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=twitter%2Ftwitter.php;h=380121c2e2a40bc0d820e2417021b077a3bfda33;hb=9e9916a8d5518860fda327de2d2e87d878efc0d2;hp=2669c46d3e79919a1eb61e141e4e51e7cc47a26b;hpb=39cc0fe4cb909a52b3bb75b685ca7142863a6027;p=friendica-addons.git diff --git a/twitter/twitter.php b/twitter/twitter.php index 2669c46d..380121c2 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -438,6 +438,9 @@ function twitter_post_hook(&$a,&$b) { return; // if post comes from twitter don't send it back + if($b['extid'] == NETWORK_TWITTER) + return; + if($b['app'] == "Twitter") return; @@ -743,7 +746,9 @@ function twitter_fetchtimeline($a, $uid) { $_REQUEST["type"] = "wall"; $_REQUEST["api_source"] = true; $_REQUEST["profile_uid"] = $uid; - $_REQUEST["source"] = "Twitter"; + //$_REQUEST["source"] = "Twitter"; + $_REQUEST["source"] = $post->source; + $_REQUEST["extid"] = NETWORK_TWITTER; //$_REQUEST["date"] = $post->created_at;