Commit d2cd5b33 authored by Brion Vibber's avatar Brion Vibber

Tweak which should fix ActivityStreams output for Twitter profiles (if...

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.
parent f213ac33
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment