Remove Ostatus_profile when releted Profile is deleted

This commit is contained in:
Mikael Nordfeldth 2014-07-04 11:45:42 +02:00
parent a35838be9e
commit eda69cabaf

View File

@ -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;
}
}