Preparations for the upcoming bidirectional twitter sync.

This commit is contained in:
Michael Vogel 2013-10-12 08:29:39 +02:00
parent 370d8d7063
commit 59b64ece25
2 changed files with 6 additions and 1 deletions

View file

@ -349,6 +349,10 @@ function GetProfileUsername($profile, $username) {
if ($diaspora != $profile)
return($diaspora);
$twitter = preg_replace("=https?://twitter.com/(.*)=ism", "$1@twitter.com", $profile);
if ($twitter != $profile)
return($twitter);
$StatusnetHost = preg_replace("=https?://(.*)/user/(.*)=ism", "$1", $profile);
if ($StatusnetHost != $profile) {
$StatusnetUser = preg_replace("=https?://(.*)/user/(.*)=ism", "$2", $profile);