1
0
Fork 0

fix to wall_upload photos default permissions to use cid rather than uid.

This commit is contained in:
friendica 2012-04-08 16:19:45 -07:00
commit 977625a53b
5 changed files with 338 additions and 307 deletions

View file

@ -351,7 +351,7 @@ function item_post(&$a) {
$image_uri = substr($image_uri,0, strpos($image_uri,'-'));
if(! strlen($image_uri))
continue;
$srch = '<' . intval($profile_uid) . '>';
$srch = '<' . intval($contact_record['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),