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:
parent
f213ac33db
commit
d2cd5b3353
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user