forked from GNUsocial/gnu-social
Remove Ostatus_profile when releted Profile is deleted
This commit is contained in:
parent
a35838be9e
commit
eda69cabaf
@ -1350,4 +1350,11 @@ class OStatusPlugin extends Plugin
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function onProfileDeleteRelated($profile, &$related)
|
||||
{
|
||||
// Ostatus_profile has a 'profile_id' property, which will be used to find the object
|
||||
$related[] = 'Ostatus_profile';
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user