forked from GNUsocial/gnu-social
hook in OStatusPlugin to return Ostatus_profile URIs where applicable
This commit is contained in:
parent
a745d38d6d
commit
cc18f757a8
@ -484,4 +484,14 @@ class OStatusPlugin extends Plugin
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onStartGetProfileUri($profile, &$uri)
|
||||||
|
{
|
||||||
|
$oprofile = Ostatus_profile::staticGet('profile_id', $profile->id);
|
||||||
|
if (!empty($oprofile)) {
|
||||||
|
$uri = $oprofile->uri;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user