Bugfix: consider flags of the referenced post in case of Boost events.

This commit is contained in:
Vitor Pamplona 2023-02-04 10:42:32 -05:00
parent 2a5f8595d0
commit 40deb46eab

View File

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