diff options
author | friendica <info@friendica.com> | 2012-01-23 20:56:11 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-23 20:56:11 -0800 |
commit | a76a497d924a16b8b07b126408db21655aac3bd6 (patch) | |
tree | da677488f3ad710d223ae7e3ad68d1c695f46ada /mod/search.php | |
parent | 1f074cb44c5deda5b480f5ff814ff3640ec843d0 (diff) | |
download | volse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.tar.gz volse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.tar.bz2 volse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.zip |
implement "moderate" flag on items
Diffstat (limited to 'mod/search.php')
-rwxr-xr-x | mod/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/search.php b/mod/search.php index 3f98b607f..fe09b671f 100755 --- a/mod/search.php +++ b/mod/search.php @@ -103,7 +103,7 @@ function search_content(&$a) { $r = q("SELECT COUNT(*) AS `total` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` LEFT JOIN `user` ON `user`.`uid` = `item`.`uid` - WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 + WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND (( `wall` = 1 AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND `user`.`hidewall` = 0) OR `item`.`uid` = %d ) AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 @@ -126,7 +126,7 @@ function search_content(&$a) { `user`.`nickname` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` LEFT JOIN `user` ON `user`.`uid` = `item`.`uid` - WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 + WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND (( `wall` = 1 AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND `user`.`hidewall` = 0 ) OR `item`.`uid` = %d ) AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 |