aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-25 20:48:38 -0700
committerzotlabs <mike@macgirvin.com>2017-04-25 20:48:38 -0700
commitb88be137ca68c6b52e13ce1738fbc55651f37138 (patch)
treeb683ec5f739255568f5c205c636aba2b9e607259 /include/items.php
parent195eb712002dcf1b79382c740720317d5311a6e8 (diff)
downloadvolse-hubzilla-b88be137ca68c6b52e13ce1738fbc55651f37138.tar.gz
volse-hubzilla-b88be137ca68c6b52e13ce1738fbc55651f37138.tar.bz2
volse-hubzilla-b88be137ca68c6b52e13ce1738fbc55651f37138.zip
provide a broken feed for services which require a broken feed
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index a4862208e..1f79ee567 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3885,6 +3885,10 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
}
}
+ if(intval($arr['compat']) === 1) {
+ $sql_extra = " AND author_xchan = owner_xchan and item_wall = 1 and item_private = 0 ";
+ }
+
if ($arr['datequery']) {
$sql_extra3 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert('UTC','UTC',$arr['datequery']))));
}