]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Remove resourceid parameter from Photo::exists()
[friendica.git] / mod / item.php
index cc9de0dd60bb114fc7d44f567d8260bfb8b8fb58..62b088a04fe6f9716cba30f9f4178282332d8626 100644 (file)
@@ -459,9 +459,9 @@ function item_post(App $a) {
 
                                $condition = [
                                        'allow_cid' => $srch, 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '',
-                                       'uid' => $profile_uid
+                                       'resource-id' => $image_uri, 'uid' => $profile_uid
                                ];
-                               if (!Photo::exists($image_uri, $condition)) {
+                               if (!Photo::exists($condition)) {
                                        continue;
                                }