Fix alerts

This commit is contained in:
Jonathan Staab 2023-03-09 13:09:05 -06:00
parent e74296d767
commit a1eaf25dec

View File

@ -26,7 +26,7 @@
// is really upstream of this, but it's an easy fix
const events = user
.applyMutes(database.alerts.all())
.filter(e => any(k => e[k].length > 0, ["replies", "likedBy", "zappedBy"]) || e.isMention)
.filter(e => any(k => e[k]?.length > 0, ["replies", "likedBy", "zappedBy"]) || e.isMention)
notes = sortBy(e => -e.created_at, events).slice(0, limit)
})