mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-07 11:34:43 +02:00
Dedup without keeping deleted array
This commit is contained in:
parent
48523a2269
commit
fef46823eb
5 changed files with 10 additions and 12 deletions
web/src/app
|
@ -8,7 +8,7 @@ class Api {
|
|||
for await (let line of fetchLinesIterator(url)) {
|
||||
messages.push(JSON.parse(line));
|
||||
}
|
||||
return messages.sort((a, b) => { return a.time < b.time ? 1 : -1; }); // Newest first
|
||||
return messages;
|
||||
}
|
||||
|
||||
async publish(baseUrl, topic, message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue