[TheFreeNetwork] Fix small logic issue regarding StartTFNLookup return

This commit is contained in:
Diogo Cordeiro
2020-07-05 18:26:49 +01:00
committed by Diogo Peralta Cordeiro
parent d81e795cc0
commit 8ec2af0020
3 changed files with 5 additions and 3 deletions

View File

@@ -1209,7 +1209,8 @@ class Ostatus_profile extends Managed_DataObject
if ($object->type == ActivityObject::PERSON) {
// Does any other protocol have this remote entity we're about to add ?
if (!Event::handle('StartTFNLookup', [$oprofile->uri, get_called_class(), &$profile_id])) {
Event::handle('StartTFNLookup', [$oprofile->uri, get_called_class(), &$profile_id]);
if (!is_null($profile_id)) {
$tfn = true; // been here!
// Yes! Avoid creating a new profile