aboutsummaryrefslogtreecommitdiffstats
path: root/include/delivery.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-23 20:56:11 -0800
committerfriendica <info@friendica.com>2012-01-23 20:56:11 -0800
commita76a497d924a16b8b07b126408db21655aac3bd6 (patch)
treeda677488f3ad710d223ae7e3ad68d1c695f46ada /include/delivery.php
parent1f074cb44c5deda5b480f5ff814ff3640ec843d0 (diff)
downloadvolse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.tar.gz
volse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.tar.bz2
volse-hubzilla-a76a497d924a16b8b07b126408db21655aac3bd6.zip
implement "moderate" flag on items
Diffstat (limited to 'include/delivery.php')
-rwxr-xr-xinclude/delivery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/delivery.php b/include/delivery.php
index 5441ac510..c05358868 100755
--- a/include/delivery.php
+++ b/include/delivery.php
@@ -84,7 +84,7 @@ function delivery_run($argv, $argc){
else {
// find ancestors
- $r = q("SELECT * FROM `item` WHERE `id` = %d LIMIT 1",
+ $r = q("SELECT * FROM `item` WHERE `id` = %d and visible = 1 and moderated = 0 LIMIT 1",
intval($item_id)
);
@@ -102,7 +102,7 @@ function delivery_run($argv, $argc){
$items = q("SELECT `item`.*, `sign`.`signed_text`,`sign`.`signature`,`sign`.`signer`
- FROM `item` LEFT JOIN `sign` ON `sign`.`iid` = `item`.`id` WHERE `parent` = %d ORDER BY `id` ASC",
+ FROM `item` LEFT JOIN `sign` ON `sign`.`iid` = `item`.`id` WHERE `parent` = %d and visible = 1 and moderated = 0 ORDER BY `id` ASC",
intval($parent_id)
);