diff options
author | Mario <mario@mariovavti.com> | 2020-12-14 21:56:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-14 21:56:19 +0000 |
commit | 8e488e291347857407dbedaf05d63941701d82d2 (patch) | |
tree | 52b9ca66fb3a9d9934000aca4c4860770dad7bb2 /Zotlabs/Module | |
parent | e58e27ce2256ce4192c6ac7670ccb301fb40e60a (diff) | |
download | volse-hubzilla-8e488e291347857407dbedaf05d63941701d82d2.tar.gz volse-hubzilla-8e488e291347857407dbedaf05d63941701d82d2.tar.bz2 volse-hubzilla-8e488e291347857407dbedaf05d63941701d82d2.zip |
handle removal of terms in attach_delete() when deleting a ressource
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Attach_edit.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Zotlabs/Module/Attach_edit.php b/Zotlabs/Module/Attach_edit.php index 0a41dbb22..667a0b7aa 100644 --- a/Zotlabs/Module/Attach_edit.php +++ b/Zotlabs/Module/Attach_edit.php @@ -110,15 +110,7 @@ class Attach_edit extends Controller { if ($delete) { attach_delete($channel_id, $resource, $is_photo); - - q("DELETE FROM term WHERE uid = %d AND oid = %d AND otype = %d", - intval($channel_id), - intval($attach_id), - intval(TERM_OBJ_FILE) - ); - $actions_done .= 'delete,'; - } if ($copy) { @@ -161,9 +153,8 @@ class Attach_edit extends Controller { store_item_tag($channel_id, $attach_id, TERM_OBJ_FILE, TERM_CATEGORY, $term, $term_link); } } + $actions_done .= 'cat_add,'; } - $actions_done .= 'cat_add,'; - } else { q("DELETE FROM term WHERE uid = %d AND oid = %d AND otype = %d", |