Fixes likes not showing up in Notifications

pull/37/head
Vitor Pamplona 2023-01-25 10:40:45 -03:00
rodzic 30ab477d7d
commit e7b6ca1bb2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -344,8 +344,8 @@ class Account(
fun isAcceptable(note: Note): Boolean {
return note.author?.let { isAcceptable(it) } ?: true // if user hasn't hided this author
&& isAcceptableDirect(note)
&& (note.event !is ReactionEvent
|| (note.event is ReactionEvent && note.replyTo?.firstOrNull { isAcceptableDirect(note) } == null)
&& (note.event !is RepostEvent
|| (note.event is RepostEvent && note.replyTo?.firstOrNull { isAcceptableDirect(note) } != null)
) // is not a reaction about a blocked post
}
}