From e7b6ca1bb288518c3161803489e5d2d0f08fbd52 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 25 Jan 2023 10:40:45 -0300 Subject: [PATCH] Fixes likes not showing up in Notifications --- app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index 2402eaf49..674d258cd 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -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 } }