forked from GNUsocial/gnu-social
Ostatus_profile->checkAuthorship returns Profile
not Ostatus_profile
This commit is contained in:
parent
3bf1478f97
commit
720c2c9ff2
@ -1343,8 +1343,7 @@ class OStatusPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$oprofile = Ostatus_profile::getFromProfile($profile);
|
$oprofile = Ostatus_profile::getFromProfile($profile);
|
||||||
$oprofile = $oprofile->checkAuthorship($activity);
|
$profile = $oprofile->checkAuthorship($activity);
|
||||||
$profile = $oprofile->localProfile();
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
common_log(LOG_ERR, 'Could not get a profile or check authorship ('.get_class($e).': "'.$e->getMessage().'") for activity ID: '.$activity->id);
|
common_log(LOG_ERR, 'Could not get a profile or check authorship ('.get_class($e).': "'.$e->getMessage().'") for activity ID: '.$activity->id);
|
||||||
$profile = null;
|
$profile = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user