From 7c690c93bba85e03c4412030f330fcf657ed27a2 Mon Sep 17 00:00:00 2001
From: Jonny Tischbein <jonny_tischbein@systemli.org>
Date: Sat, 17 Nov 2018 19:14:59 +0100
Subject: [PATCH] Fix setting permisson as post for uploaded photo in album via
 modal create post

---
 mod/item.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mod/item.php b/mod/item.php
index 507185e7c..5f9173fab 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -468,7 +468,7 @@ function item_post(App $a) {
 
 				$fields = ['allow_cid' => $str_contact_allow, 'allow_gid' => $str_group_allow,
 						'deny_cid' => $str_contact_deny, 'deny_gid' => $str_group_deny];
-				$condition = ['resource-id' => $image_uri, 'uid' => $profile_uid, 'album' => L10n::t('Wall Photos')];
+				$condition = ['resource-id' => $image_uri, 'uid' => $profile_uid];
 				DBA::update('photo', $fields, $condition);
 			}
 		}