more work on linked item/resource deletion for photos and events, deprecate the force flag in drop_item() and comment out goaway() in drop_item().

This commit is contained in:
Mario Vavti
2019-06-13 13:34:04 +02:00
parent bc34167c84
commit 801ab611ed
4 changed files with 54 additions and 75 deletions

View File

@@ -455,11 +455,6 @@ class Channel_calendar extends \Zotlabs\Web\Controller {
if($can_delete || $local_delete) {
q("update item set resource_type = '', resource_id = '' where resource_type = 'event' and resource_id = '%s' and uid = %d",
dbesc($event_id),
intval(local_channel())
);
// if this is a different page type or it's just a local delete
// but not by the item author or owner, do a simple deletion