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
1 changed files with 7 additions and 0 deletions

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