From 26e3eee76915aa4ea2d589458e0649ffc1af6656 Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Mon, 28 Mar 2011 04:32:46 -0400 Subject: [PATCH] deleting videos is now possible --- plugins/GNUsocialVideo/GNUsocialVideoPlugin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); + } } } -- 2.39.2