mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Use the original application name when mirroring posts.
This commit is contained in:
parent
d0d23ec2b6
commit
9e9916a8d5
4 changed files with 46 additions and 5 deletions
|
@ -532,6 +532,9 @@ function statusnet_post_hook(&$a,&$b) {
|
|||
return;
|
||||
|
||||
// if posts comes from statusnet don't send it back
|
||||
if($b['extid'] == NETWORK_STATUSNET)
|
||||
return;
|
||||
|
||||
if($b['app'] == "StatusNet")
|
||||
return;
|
||||
|
||||
|
@ -829,7 +832,9 @@ function statusnet_fetchtimeline($a, $uid) {
|
|||
$_REQUEST["type"] = "wall";
|
||||
$_REQUEST["api_source"] = true;
|
||||
$_REQUEST["profile_uid"] = $uid;
|
||||
$_REQUEST["source"] = "StatusNet";
|
||||
//$_REQUEST["source"] = "StatusNet";
|
||||
$_REQUEST["source"] = $post->source;
|
||||
$_REQUEST["extid"] = NETWORK_STATUSNET;
|
||||
|
||||
//$_REQUEST["date"] = $post->created_at;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue