mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 17:44:48 +02:00
fix: various fixes (#3136)
This commit is contained in:
parent
00ff0890bb
commit
b64f8f2a09
3 changed files with 27 additions and 15 deletions
|
@ -64,7 +64,11 @@ TEXT;
|
|||
}
|
||||
|
||||
// Sort by timestamp descending
|
||||
usort($this->items, fn ($a, $b) => $b['timestamp'] <=> $a['timestamp']);
|
||||
usort($this->items, function ($a, $b) {
|
||||
$t1 = $a['timestamp'] ?? $a['uri'] ?? $a['title'];
|
||||
$t2 = $b['timestamp'] ?? $b['uri'] ?? $b['title'];
|
||||
return $t2 <=> $t1;
|
||||
});
|
||||
|
||||
// Remove duplicates by using url as unique key
|
||||
$items = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue