mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-24 16:01:00 +02:00
publish: get_pref: properly set owner_uid
This commit is contained in:
parent
3f7e6cd005
commit
7a22dc2ad5
@ -3128,7 +3128,7 @@
|
|||||||
} else if ($feed == -3) { // fresh virtual feed
|
} else if ($feed == -3) { // fresh virtual feed
|
||||||
$query_strategy_part = "unread = true";
|
$query_strategy_part = "unread = true";
|
||||||
|
|
||||||
$intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE");
|
$intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE", $owner_uid);
|
||||||
|
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$query_strategy_part .= " AND date_entered > NOW() - INTERVAL '$intl hour' ";
|
$query_strategy_part .= " AND date_entered > NOW() - INTERVAL '$intl hour' ";
|
||||||
@ -3154,7 +3154,7 @@
|
|||||||
$query_strategy_part = "id > 0"; // dumb
|
$query_strategy_part = "id > 0"; // dumb
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'REVERSE_HEADLINES')) {
|
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
||||||
$order_by = "updated";
|
$order_by = "updated";
|
||||||
} else {
|
} else {
|
||||||
$order_by = "updated DESC";
|
$order_by = "updated DESC";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user