Commit 2d0155a5 authored by mmn's avatar mmn

Added Magicsig onProfileDeleteRelated

parent 975ce6d8
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment