aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-05-02 17:28:49 +0200
committerMario <mario@mariovavti.com>2020-05-02 17:28:49 +0200
commitf4a71db42dec1daa5d3cbf305372bdf47b4add5f (patch)
treea27cb28c6ee01369c1dfec4198065932f5d9e179 /Zotlabs/Module
parent446204f7d8ee83c8842dfb1e4a71f6f66fbce9e6 (diff)
downloadvolse-hubzilla-f4a71db42dec1daa5d3cbf305372bdf47b4add5f.tar.gz
volse-hubzilla-f4a71db42dec1daa5d3cbf305372bdf47b4add5f.tar.bz2
volse-hubzilla-f4a71db42dec1daa5d3cbf305372bdf47b4add5f.zip
Display delayed posts on author's channel page
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Channel.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 170b81787..08de059a8 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -239,8 +239,12 @@ class Channel extends Controller {
/**
* Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
*/
-
- $item_normal = item_normal();
+
+ $item_normal = " and item.item_hidden = 0 and item.item_type = 0 and item.item_deleted = 0
+ and item.item_unpublished = 0 and item.item_pending_remove = 0
+ and item.item_blocked = 0 ";
+ if (! $is_owner)
+ $item_normal .= "and item.item_delayed = 0 ";
$item_normal_update = item_normal_update();
$sql_extra = item_permissions_sql(App::$profile['profile_uid']);