aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-08 16:19:45 -0700
committerfriendica <info@friendica.com>2012-04-08 16:19:45 -0700
commit977625a53b77c4944fc294fa670aae15c068b94b (patch)
treeb6898058a77925062bbcc82afcebb8e870c5d906 /mod/item.php
parent5c0446975516f2b52b6cf51618e0b75af56de71b (diff)
downloadvolse-hubzilla-977625a53b77c4944fc294fa670aae15c068b94b.tar.gz
volse-hubzilla-977625a53b77c4944fc294fa670aae15c068b94b.tar.bz2
volse-hubzilla-977625a53b77c4944fc294fa670aae15c068b94b.zip
fix to wall_upload photos default permissions to use cid rather than uid.
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 72e63865b..82fb0bf72 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -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),