Notifications now require the Notified to be the author of the post the notification is mentioning.

This commit is contained in:
Vitor Pamplona 2023-03-01 14:00:03 -05:00
parent 511cc86025
commit d704352f1f

View File

@ -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
||