Skip to content

Commit

Permalink
Make muting of feeds more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Feb 24, 2025
1 parent 88baaa0 commit 9d34aba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# 0.6.6

* Show complete website/lnurl
* Scan images for sensitive content
* Make muting on feeds more strict

# 0.6.5

Expand Down
8 changes: 4 additions & 4 deletions src/app/shared/NoteReducer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
const context = new Map<string, Set<TrustedEvent>>()
const shouldSkip = (event: TrustedEvent) => {
if (!showMuted && $isEventMuted(event, true)) return true
const shouldSkip = (event: TrustedEvent, strict: boolean) => {
if (!showMuted && $isEventMuted(event, strict)) return true
if (!showDeleted && repository.isDeleted(event)) return true
if (hideReplies && getParentIdOrAddr(event)) return true
Expand Down Expand Up @@ -73,7 +73,7 @@
}
// Hide replies to deleted/muted parents
if (shouldSkip(parent)) {
if (shouldSkip(parent, true)) {
return
}
Expand Down Expand Up @@ -114,7 +114,7 @@
const addEvents = async (events: TrustedEvent[]) => {
for (const event of events) {
if (!shouldSkip(event)) {
if (!shouldSkip(event, false)) {
const promise = addEvent(event)
if (shouldAwait) {
Expand Down

0 comments on commit 9d34aba

Please sign in to comment.