Skip to content

Commit 9d34aba

Browse files
author
Jon Staab
committed
Make muting of feeds more strict
1 parent 88baaa0 commit 9d34aba

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# 0.6.6
44

55
* Show complete website/lnurl
6+
* Scan images for sensitive content
7+
* Make muting on feeds more strict
68

79
# 0.6.5
810

src/app/shared/NoteReducer.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
3232
const context = new Map<string, Set<TrustedEvent>>()
3333
34-
const shouldSkip = (event: TrustedEvent) => {
35-
if (!showMuted && $isEventMuted(event, true)) return true
34+
const shouldSkip = (event: TrustedEvent, strict: boolean) => {
35+
if (!showMuted && $isEventMuted(event, strict)) return true
3636
if (!showDeleted && repository.isDeleted(event)) return true
3737
if (hideReplies && getParentIdOrAddr(event)) return true
3838
@@ -73,7 +73,7 @@
7373
}
7474
7575
// Hide replies to deleted/muted parents
76-
if (shouldSkip(parent)) {
76+
if (shouldSkip(parent, true)) {
7777
return
7878
}
7979
@@ -114,7 +114,7 @@
114114
115115
const addEvents = async (events: TrustedEvent[]) => {
116116
for (const event of events) {
117-
if (!shouldSkip(event)) {
117+
if (!shouldSkip(event, false)) {
118118
const promise = addEvent(event)
119119
120120
if (shouldAwait) {

0 commit comments

Comments
 (0)