From: Mikael Nordfeldth Date: Fri, 4 Jul 2014 09:45:42 +0000 (+0200) Subject: Remove Ostatus_profile when releted Profile is deleted X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eda69cabafbab755a79f381beda0a67a42a7a878;p=quix0rs-gnu-social.git Remove Ostatus_profile when releted Profile is deleted --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index c242afbd78..da5aa7adb2 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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; + } }