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(); + } } }