aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-20 13:43:35 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-20 13:43:35 +0200
commit865c38995d1835fa965669677371bb909e49656f (patch)
treebb2eab85e4d6a01db6979ab51792db057ec70d4c
parentbeae28f2db8ebfd2214c643578cb169e6962a5bf (diff)
downloadvolse-hubzilla-865c38995d1835fa965669677371bb909e49656f.tar.gz
volse-hubzilla-865c38995d1835fa965669677371bb909e49656f.tar.bz2
volse-hubzilla-865c38995d1835fa965669677371bb909e49656f.zip
some photos cant be deleted under certain circumstances - needs more investigation. revert this until a better fix is found.
-rw-r--r--mod/photos.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 0442a5d24..7cd972d8d 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -184,16 +184,13 @@ function photos_post(&$a) {
if($r) {
- /* this happens in attach_delete
q("DELETE FROM `photo` WHERE `uid` = %d AND `resource_id` = '%s'",
intval($page_owner_uid),
dbesc($r[0]['resource_id'])
);
- */
attach_delete($page_owner_uid, $r[0]['resource_id'], 1 );
- /* this happens in attach_delete
$i = q("SELECT * FROM `item` WHERE `resource_id` = '%s' AND resource_type = 'photo' and `uid` = %d LIMIT 1",
dbesc($r[0]['resource_id']),
intval($page_owner_uid)
@@ -202,7 +199,6 @@ function photos_post(&$a) {
drop_item($i[0]['id'],true,DROPITEM_PHASE1);
$url = $a->get_baseurl();
}
- */
}
goaway($a->get_baseurl() . '/photos/' . $a->data['channel']['channel_address'] . '/album/' . $_SESSION['album_return']);