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/photos.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/photos.php')
-rwxr-xr-x | mod/photos.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index 77b44ce0d..466fe44d3 100755 --- a/mod/photos.php +++ b/mod/photos.php @@ -1103,7 +1103,7 @@ function photos_content(&$a) { $link_item = $linked_items[0]; $r = q("SELECT COUNT(*) AS `total` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` - WHERE `parent-uri` = '%s' AND `uri` != '%s' AND `item`.`deleted` = 0 + WHERE `parent-uri` = '%s' AND `uri` != '%s' AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `item`.`uid` = %d $sql_extra ", @@ -1122,7 +1122,7 @@ function photos_content(&$a) { `contact`.`rel`, `contact`.`thumb`, `contact`.`self`, `contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid` FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` - WHERE `parent-uri` = '%s' AND `uri` != '%s' AND `item`.`deleted` = 0 + WHERE `parent-uri` = '%s' AND `uri` != '%s' AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `item`.`uid` = %d $sql_extra |