sql errors on postgres with yestderday's optimisation
This commit is contained in:
parent
c024668cf2
commit
00b3c4c881
@ -4381,7 +4381,7 @@ function zot_feed($uid,$observer_xchan,$arr) {
|
||||
|
||||
if(is_sys_channel($uid)) {
|
||||
require_once('include/security.php');
|
||||
$r = q("SELECT parent from item
|
||||
$r = q("SELECT parent, created from item
|
||||
WHERE uid != %d
|
||||
AND item_private = 0 AND item_restrict = 0 AND uid in (" . stream_perms_api_uids(PERMS_PUBLIC,10,1) . ")
|
||||
AND (item_flags & %d) > 0
|
||||
@ -4391,7 +4391,7 @@ function zot_feed($uid,$observer_xchan,$arr) {
|
||||
);
|
||||
}
|
||||
else {
|
||||
$r = q("SELECT parent from item
|
||||
$r = q("SELECT parent, created from item
|
||||
WHERE uid = %d AND item_restrict = 0
|
||||
AND (item_flags & %d) > 0
|
||||
$sql_extra GROUP BY parent ORDER BY created ASC $limit",
|
||||
|
Reference in New Issue
Block a user