From 4d4e34dc640829684e766d081fc9897fe7f93ab7 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Feb 2023 14:18:01 +0000 Subject: [PATCH] Issue 12764: Fix photo permissions when posting via web --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 0dd025539a..55c27a5198 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1035,7 +1035,7 @@ class Item } } - if ($notify) { + if ($item['origin']) { if (Photo::setPermissionFromBody($item['body'], $item['uid'], $item['contact-id'], $item['allow_cid'], $item['allow_gid'], $item['deny_cid'], $item['deny_gid'])) { $item['object-type'] = Activity\ObjectType::IMAGE; } -- 2.39.5