]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
deleting videos is now possible
authorIan Denhardt <ian@zenhack.net>
Mon, 28 Mar 2011 08:32:46 +0000 (04:32 -0400)
committerIan Denhardt <ian@zenhack.net>
Mon, 28 Mar 2011 08:32:46 +0000 (04:32 -0400)
plugins/GNUsocialVideo/GNUsocialVideoPlugin.php

index 79f79c50d2a8a6c63fbf3f109754afefcbe60887..76053f29f314769960686b9a805cf531ac8449c7 100644 (file)
@@ -143,6 +143,9 @@ class GNUsocialVideoPlugin extends MicroAppPlugin
 
     function deleteRelated($notice)
     {
-        exit(1); // TODO: implement
+        $vid = Video::getByNotice($notice);
+        if ($vid) {
+            $vid->delete();
+        }
     }
 }