mirror of
https://github.com/friendica/friendica
synced 2024-12-23 06:00:15 +00:00
Preparations for the upcoming bidirectional twitter sync.
This commit is contained in:
parent
370d8d7063
commit
59b64ece25
2 changed files with 6 additions and 1 deletions
|
@ -349,6 +349,10 @@ function GetProfileUsername($profile, $username) {
|
||||||
if ($diaspora != $profile)
|
if ($diaspora != $profile)
|
||||||
return($diaspora);
|
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);
|
$StatusnetHost = preg_replace("=https?://(.*)/user/(.*)=ism", "$1", $profile);
|
||||||
if ($StatusnetHost != $profile) {
|
if ($StatusnetHost != $profile) {
|
||||||
$StatusnetUser = preg_replace("=https?://(.*)/user/(.*)=ism", "$2", $profile);
|
$StatusnetUser = preg_replace("=https?://(.*)/user/(.*)=ism", "$2", $profile);
|
||||||
|
|
|
@ -85,7 +85,8 @@ function network_to_name($s) {
|
||||||
NETWORK_MYSPACE => t('MySpace'),
|
NETWORK_MYSPACE => t('MySpace'),
|
||||||
NETWORK_MAIL2 => t('Email'),
|
NETWORK_MAIL2 => t('Email'),
|
||||||
NETWORK_GPLUS => t('Google+'),
|
NETWORK_GPLUS => t('Google+'),
|
||||||
NETWORK_PUMPIO => t('pump.io')
|
NETWORK_PUMPIO => t('pump.io'),
|
||||||
|
NETWORK_TWITTER => t('Twitter')
|
||||||
);
|
);
|
||||||
|
|
||||||
call_hooks('network_to_name', $nets);
|
call_hooks('network_to_name', $nets);
|
||||||
|
|
Loading…
Reference in a new issue