]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove Ostatus_profile when releted Profile is deleted
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 4 Jul 2014 09:45:42 +0000 (11:45 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 4 Jul 2014 09:45:42 +0000 (11:45 +0200)
plugins/OStatus/OStatusPlugin.php

index c242afbd7821d365b8fc5104fe6356b42f48feca..da5aa7adb260e2577682ff87642750e3eeb4b2cd 100644 (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;
+    }
 }