From: Ian Denhardt Date: Mon, 28 Mar 2011 08:32:46 +0000 (-0400) Subject: deleting videos is now possible X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=26e3eee76915aa4ea2d589458e0649ffc1af6656;p=quix0rs-gnu-social.git deleting videos is now possible --- diff --git a/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php b/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php index 79f79c50d2..76053f29f3 100644 --- a/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php +++ b/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php @@ -143,6 +143,9 @@ class GNUsocialVideoPlugin extends MicroAppPlugin function deleteRelated($notice) { - exit(1); // TODO: implement + $vid = Video::getByNotice($notice); + if ($vid) { + $vid->delete(); + } } }