aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-12 16:27:27 -0800
committerfriendica <info@friendica.com>2015-01-12 16:27:27 -0800
commitcdc52ba88418f4289f8712ade232e429242f82e7 (patch)
tree6b06363ce2ef3ec9b69fa676512d8cf1716b31ac /mod/photos.php
parent9fc9af87e375e65a2bdee4d3c4009df9ed52b4aa (diff)
downloadvolse-hubzilla-cdc52ba88418f4289f8712ade232e429242f82e7.tar.gz
volse-hubzilla-cdc52ba88418f4289f8712ade232e429242f82e7.tar.bz2
volse-hubzilla-cdc52ba88418f4289f8712ade232e429242f82e7.zip
change deletion behaviour of linked photo items. Previously deleting the visible item in the conversation deleted the photo as well. Now photos must be deleted in the photos module. Deleting the linked item removes any attached conversation elements (likes, etc.) and sets the conversation item to hidden. This may create an issue in the future if we move the photo tags, title, or other photo elements to the linked item rather than the photo. Noting here so this can potentially be discovered and remembered at that time.
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index df9880c8d..92a2d8e24 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -140,7 +140,7 @@ function photos_post(&$a) {
);
if($r) {
foreach($r as $i) {
- drop_item($i['id'],false);
+ drop_item($i['id'],false,DROPITEM_PHASE1,true /* force removal of linked items */);
if(! $item_restrict)
proc_run('php','include/notifier.php','drop',$i['id']);
}