Removes relay lists from notifications

This commit is contained in:
Vitor Pamplona
2025-07-21 17:33:31 -04:00
parent 1c5acc00f3
commit 6066c7d06d
2 changed files with 6 additions and 0 deletions
@@ -0,0 +1,4 @@
package com.vitorpamplona.amethyst.model.nip03Timestamp
class OtsState {
}
@@ -39,6 +39,7 @@ import com.vitorpamplona.quartz.nip28PublicChat.admin.ChannelCreateEvent
import com.vitorpamplona.quartz.nip28PublicChat.admin.ChannelMetadataEvent
import com.vitorpamplona.quartz.nip34Git.issue.GitIssueEvent
import com.vitorpamplona.quartz.nip34Git.patch.GitPatchEvent
import com.vitorpamplona.quartz.nip51Lists.PrivateTagArrayEvent
import com.vitorpamplona.quartz.nip51Lists.muteList.MuteListEvent
import com.vitorpamplona.quartz.nip51Lists.peopleList.PeopleListEvent
import com.vitorpamplona.quartz.nip57Zaps.LnZapEvent
@@ -123,6 +124,7 @@ class NotificationFeedFilter(
it.event !is NIP90StatusEvent &&
it.event !is NIP90ContentDiscoveryRequestEvent &&
it.event !is GiftWrapEvent &&
it.event !is PrivateTagArrayEvent &&
(it.event is LnZapEvent || notifAuthor != loggedInUserHex) &&
(filterParams.isGlobal(it.relays) || notifAuthor == null || filterParams.isAuthorInFollows(notifAuthor) == true) &&
it.event?.isTaggedUser(loggedInUserHex) ?: false &&