]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12764: Fix photo permissions when posting via web
authorMichael <heluecht@pirati.ca>
Tue, 7 Feb 2023 14:18:01 +0000 (14:18 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 7 Feb 2023 14:18:01 +0000 (14:18 +0000)
src/Model/Item.php

index 0dd025539a914820ff1336458bd73b5778289e68..55c27a51986cd08456591ed8188e60e4eec8dc8c 100644 (file)
@@ -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;
                        }