mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-22 14:34:12 +02:00
Notifications now require the Notified to be the author of the post the notification is mentioning.
This commit is contained in:
parent
511cc86025
commit
d704352f1f
@ -23,6 +23,19 @@ object NotificationFeedFilter: FeedFilter<Note>() {
|
||||
&& it.event !is ChannelMetadataEvent
|
||||
&& it.event !is LnZapRequestEvent
|
||||
}
|
||||
.filter {
|
||||
it.event !is TextNoteEvent
|
||||
||
|
||||
(
|
||||
it.event is TextNoteEvent
|
||||
&&
|
||||
(
|
||||
it.replyTo?.any { it.author == account.userProfile() } == true
|
||||
||
|
||||
account.userProfile() in it.directlyCiteUsers()
|
||||
)
|
||||
)
|
||||
}
|
||||
.filter {
|
||||
it.event !is ReactionEvent
|
||||
||
|
||||
|
Loading…
x
Reference in New Issue
Block a user