aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 20f6fec18..dac4ba2bf 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -135,9 +135,11 @@ function channel_content(&$a, $update = 0, $load = false) {
if(($update) && (! $load)) {
if ($mid) {
- $r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d $sql_extra limit 1",
+ $r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d AND item_restrict = 0
+ AND (item_flags & %d) $sql_extra limit 1",
dbesc($mid),
- intval($a->profile['profile_uid'])
+ intval($a->profile['profile_uid']),
+ intval(ITEM_WALL)
);
} else {
$r = q("SELECT distinct parent AS `item_id` from item