]> git.mxchange.org Git - friendica.git/commitdiff
fix wall_uploaded photo permissions on group post by member
authorfriendica <info@friendica.com>
Sat, 26 May 2012 00:42:35 +0000 (17:42 -0700)
committerfriendica <info@friendica.com>
Sat, 26 May 2012 00:42:35 +0000 (17:42 -0700)
mod/item.php

index 81dd553cdb795895dfd9a204d28ca49871a61de0..df242d6f7c5390f6cb2c64b7dfc75e9dc2e27378 100644 (file)
@@ -355,13 +355,15 @@ function item_post(&$a) {
                                $image_uri = substr($image_uri,0, strpos($image_uri,'-'));
                                if(! strlen($image_uri))
                                        continue;
-                               $srch = '<' . intval($contact_record['id']) . '>';
+                               $srch = '<' . intval($contact_id) . '>';
+
                                $r = q("SELECT `id` FROM `photo` WHERE `allow_cid` = '%s' AND `allow_gid` = '' AND `deny_cid` = '' AND `deny_gid` = ''
                                        AND `resource-id` = '%s' AND `uid` = %d LIMIT 1",
                                        dbesc($srch),
                                        dbesc($image_uri),
                                        intval($profile_uid)
                                );
+
                                if(! count($r))
                                        continue;