diff options
author | Friendika <info@friendika.com> | 2011-07-05 23:23:43 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-05 23:23:43 -0700 |
commit | 84d12c3e08ae4b6fe228ce881b0c1570175d1667 (patch) | |
tree | bb8f4ccca207ff6c226cf79f4ce348c5bc8d9df9 /mod/photos.php | |
parent | c221d5ea597040c27a8918f9c08629e979a6e273 (diff) | |
download | volse-hubzilla-84d12c3e08ae4b6fe228ce881b0c1570175d1667.tar.gz volse-hubzilla-84d12c3e08ae4b6fe228ce881b0c1570175d1667.tar.bz2 volse-hubzilla-84d12c3e08ae4b6fe228ce881b0c1570175d1667.zip |
move hidewall to user table - queries are getting too complicated and servers falling over
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mod/photos.php b/mod/photos.php index 3e0ec5802..4a72bb680 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -816,11 +816,7 @@ function photos_content(&$a) { } } - $r = q("SELECT `hidewall` FROM `profile` WHERE `uid` = %d AND `is-default` = 1 LIMIT 1", - intval($owner_uid) - ); - - if(count($r) && $r[0]['hidewall'] && (local_user() != $owner_uid) && (! $remote_contact)) { + if($a->data['user']['hidewall'] && (local_user() != $owner_uid) && (! $remote_contact)) { notice( t('Access to this item is restricted.') . EOL); return; } |