From 661664550d7cf3cece7f9fa1ab2f2e065280e07f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 20 Oct 2013 12:26:27 +0200 Subject: [PATCH] Repeated items that are transmitted to text based networks now contain the address and name of the original poater. --- include/bbcode.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index f74c86b50a..ee251f1f1e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -343,15 +343,15 @@ function bb_ShareAttributesSimple2($match) { function GetProfileUsername($profile, $username) { $friendica = preg_replace("=https?://(.*)/profile/(.*)=ism", "$2@$1", $profile); if ($friendica != $profile) - return($friendica); + return($friendica." (".$username.")"); $diaspora = preg_replace("=https?://(.*)/u/(.*)=ism", "$2@$1", $profile); if ($diaspora != $profile) - return($diaspora); + return($diaspora." (".$username.")"); $twitter = preg_replace("=https?://twitter.com/(.*)=ism", "$1@twitter.com", $profile); if ($twitter != $profile) - return($twitter); + return($twitter." (".$username.")"); $StatusnetHost = preg_replace("=https?://(.*)/user/(.*)=ism", "$1", $profile); if ($StatusnetHost != $profile) { @@ -360,7 +360,7 @@ function GetProfileUsername($profile, $username) { $UserData = fetch_url("http://".$StatusnetHost."/api/users/show.json?user_id=".$StatusnetUser); $user = json_decode($UserData); if ($user) - return($user->screen_name."@".$StatusnetHost); + return($user->screen_name."@".$StatusnetHost." (".$username.")"); } }