diff options
author | Mario <mario@mariovavti.com> | 2021-09-23 20:43:49 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-09-23 20:43:49 +0000 |
commit | feca5afaa5c921896d224df0245ef983e7197cb4 (patch) | |
tree | 0f142a960b96bd77ba7c67ab4bbae51aae33120b | |
parent | 9cb5274d30522bc181310b884504c11c7aae8508 (diff) | |
parent | 2870fd46da8ceaff5b3a2b0f6bc8d4c7f7601661 (diff) | |
download | volse-hubzilla-feca5afaa5c921896d224df0245ef983e7197cb4.tar.gz volse-hubzilla-feca5afaa5c921896d224df0245ef983e7197cb4.tar.bz2 volse-hubzilla-feca5afaa5c921896d224df0245ef983e7197cb4.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-rw-r--r-- | include/items.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 5e162738c..2ee870c2f 100644 --- a/include/items.php +++ b/include/items.php @@ -4217,6 +4217,9 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C $item_uids = " item.uid = " . intval($uid) . " "; } + if($arr['top']) + $sql_options .= " and item_thread_top = 1 "; + if($arr['star']) $sql_options .= " and item_starred = 1 "; @@ -4372,7 +4375,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C if ($arr['total']) { $items = dbq("SELECT count(item.id) AS total FROM item WHERE $item_uids $item_restrict - $simple_update + $simple_update $sql_options $sql_extra $sql_nets $sql_extra3" ); if ($items) { @@ -4383,7 +4386,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C $items = dbq("SELECT item.*, item.id AS item_id FROM item WHERE $item_uids $item_restrict - $simple_update + $simple_update $sql_options $sql_extra $sql_nets $sql_extra3 ORDER BY item.received DESC $pager_sql" ); |