Adds citations to the notification feed

This commit is contained in:
Vitor Pamplona
2023-03-31 18:36:05 -04:00
parent 4bced4dbea
commit 3626f24b5f

View File

@@ -23,7 +23,9 @@ object NotificationFeedFilter : FeedFilter<Note>() {
}
.filter { it ->
it.event !is TextNoteEvent ||
it.replyTo?.any { it.author == loggedInUser } == true ||
(it.event as? TextNoteEvent)?.taggedEvents()?.any {
LocalCache.checkGetOrCreateNote(it)?.author == loggedInUser
} == true ||
loggedInUser in it.directlyCiteUsers()
}
.filter {