aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-06-13 08:05:05 +0000
committerMario <mario@mariovavti.com>2025-06-13 08:05:05 +0000
commit2046abf26f0bcf55ac88f8a42f35bdf49be4ca98 (patch)
tree90b83f2c42b019a73739249404579d6d8df197ff /include
parentad7871270c415772a8a058cf65de81eed8886b43 (diff)
downloadvolse-hubzilla-2046abf26f0bcf55ac88f8a42f35bdf49be4ca98.tar.gz
volse-hubzilla-2046abf26f0bcf55ac88f8a42f35bdf49be4ca98.tar.bz2
volse-hubzilla-2046abf26f0bcf55ac88f8a42f35bdf49be4ca98.zip
trick sql to use a better suited index
Diffstat (limited to 'include')
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index e4aff1172..4eda9a221 100644
--- a/include/items.php
+++ b/include/items.php
@@ -5604,7 +5604,7 @@ function items_by_thr_parent(string $mid, int $parent, int|null $offset = null):
$order_sql = "ORDER BY item.created";
if (isset($offset)) {
- $order_sql = "ORDER BY item.created DESC LIMIT 3 OFFSET $offset";
+ $order_sql = "ORDER BY item.created DESC, item.received DESC LIMIT 3 OFFSET $offset";
}
$owner_uid = intval($parent_item[0]['uid']);