if photo deleted from /cloud or /dav also delete from /photos
This commit is contained in:
parent
2848f5dab4
commit
44b542814a
@ -1282,6 +1282,11 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
|
||||
);
|
||||
if($x) {
|
||||
drop_item($x[0]['id'],false,(($x[0]['item_hidden']) ? DROPITEM_NORMAL : DROPITEM_PHASE1),true);
|
||||
|
||||
q("DELETE FROM photo WHERE uid = %d AND resource_id = '%s'",
|
||||
intval($channel_id),
|
||||
dbesc($resource)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user