fix to wall_upload photos default permissions to use cid rather than uid.
This commit is contained in:
parent
5c04469755
commit
977625a53b
5 changed files with 338 additions and 307 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue