diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-15 13:57:15 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-15 13:57:15 +0200 |
commit | 3bca640521144e139f1f1c22b64decb2ba27c904 (patch) | |
tree | 8a20bd8de2d330cb4fbc2571715ba88d7db7ab3b /mod/photos.php | |
parent | 73082a338b108f11fc27e48746f10ffc11e034fc (diff) | |
download | volse-hubzilla-3bca640521144e139f1f1c22b64decb2ba27c904.tar.gz volse-hubzilla-3bca640521144e139f1f1c22b64decb2ba27c904.tar.bz2 volse-hubzilla-3bca640521144e139f1f1c22b64decb2ba27c904.zip |
do not try to remove photos twice
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php index 320e2beed..65bc43b1b 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -183,12 +183,17 @@ 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) @@ -197,6 +202,7 @@ 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']); |