Tweak which should fix ActivityStreams output for Twitter profiles (if remote_profile entries didn't match, we ended up losing id/URI).

Explicitly uses the Twitter profile URL as profile URI if matching, without having to check the db.
This commit is contained in:
Brion Vibber 2011-03-30 11:22:32 -07:00
parent f213ac33db
commit d2cd5b3353
1 changed files with 9 additions and 0 deletions

View File

@ -530,4 +530,13 @@ class TwitterBridgePlugin extends Plugin
return true;
}
function onStartGetProfileUri($profile, &$uri)
{
if (preg_match('!^https?://twitter.com/!', $profile->profileurl)) {
$uri = $profile->profileurl;
return false;
}
return true;
}
}