[OStatus] Remove TFN's deprecated Census event and fix small typo in the code
This commit is contained in:
parent
12945c4d20
commit
34e1a6ee08
|
@ -1440,18 +1440,6 @@ class OStatusPlugin extends Plugin
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Subscribe OS's profile class to the TFN module
|
|
||||||
*
|
|
||||||
* @param array $federation
|
|
||||||
* @return bool event hook return
|
|
||||||
*/
|
|
||||||
public function onStartTFNCensus(array &$federation): bool
|
|
||||||
{
|
|
||||||
$federation[] = 'Ostatus_profile';
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility function to check if the given URI is a canonical group profile
|
* Utility function to check if the given URI is a canonical group profile
|
||||||
* page, and if so return the ID number.
|
* page, and if so return the ID number.
|
||||||
|
|
|
@ -1217,7 +1217,7 @@ class Ostatus_profile extends Managed_DataObject
|
||||||
// Yes! Avoid creating a new profile
|
// Yes! Avoid creating a new profile
|
||||||
$oprofile->profile_id = $profile_id;
|
$oprofile->profile_id = $profile_id;
|
||||||
|
|
||||||
if ($profile->insert() === false) {
|
if ($oprofile->insert() === false) {
|
||||||
// TRANS: Server exception.
|
// TRANS: Server exception.
|
||||||
throw new ServerException(_m('Cannot save OStatus profile.'));
|
throw new ServerException(_m('Cannot save OStatus profile.'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user