Skip to content

Commit b9434cf

Browse files
committed
fix(backend): feeds sorting - include hidden date fields needed for sorting
1 parent ed039f0 commit b9434cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/feeds/modules.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ public static function formatMessageList($mod) {
731731
if (!$show_icons) {
732732
$icon = false;
733733
}
734+
$sorting_date = $item['dc:date'] ?? $item['pubdate'] ?? '';
734735
$row_style .= ' '.str_replace(' ', '_', $item['server_name']);
735736
if ($style == 'news') {
736737
$res[$id] = message_list_row(array(
@@ -740,6 +741,7 @@ public static function formatMessageList($mod) {
740741
array('safe_output_callback', 'source', $item['server_name']),
741742
array('safe_output_callback', 'from'.$nofrom, $from),
742743
array('date_callback', $date, $timestamp),
744+
array('dates_holders_callback', $sorting_date, $sorting_date),
743745
),
744746
$id,
745747
$style,
@@ -754,7 +756,8 @@ public static function formatMessageList($mod) {
754756
array('safe_output_callback', 'from'.$nofrom, $from),
755757
array('subject_callback', strip_tags($item['title']), $url, $flags),
756758
array('date_callback', $date, $timestamp),
757-
array('icon_callback', $flags)
759+
array('icon_callback', $flags),
760+
array('dates_holders_callback', $sorting_date, $sorting_date),
758761
),
759762
$id,
760763
$style,

0 commit comments

Comments
 (0)