]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialVideo/GNUsocialVideoPlugin.php
deleting videos is now possible
[quix0rs-gnu-social.git] / 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();
+        }
     }
 }