provide a broken feed for services which require a broken feed

This commit is contained in:
zotlabs
2017-04-25 20:48:38 -07:00
committed by Mario Vavti
parent 97458b2885
commit 7667c630a4
6 changed files with 82 additions and 69 deletions

View File

@@ -3969,6 +3969,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']))));
}