deleting videos is now possible

This commit is contained in:
Ian Denhardt 2011-03-28 04:32:46 -04:00
parent d36f0707a4
commit 26e3eee769

View File

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