forked from GNUsocial/gnu-social
Added Magicsig onProfileDeleteRelated
This commit is contained in:
parent
975ce6d83e
commit
2d0155a50f
@ -1356,6 +1356,12 @@ class OStatusPlugin extends Plugin
|
||||
{
|
||||
// Ostatus_profile has a 'profile_id' property, which will be used to find the object
|
||||
$related[] = 'Ostatus_profile';
|
||||
|
||||
// Magicsig has a "user_id" column instead, so we have to delete it more manually:
|
||||
$magicsig = Magicsig::getKV('user_id', $profile->id);
|
||||
if ($magicsig instanceof Magicsig) {
|
||||
$magicsig->delete();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user