Mark replies to muted users for muting #90

Merged
floatingghost merged 2 commits from eris/pleroma-fe:hide-replies-muted into develop 2022-08-01 11:12:02 +00:00
Contributor

One of my users requested this.

Marks a reply to a muted user for filtering. Doesn't need additional options in my opinion since the "hide muted threads" will take care of that.

Maybe eventually it'd be good to merge both functions into one if that's possible?

One of my users requested this. Marks a reply to a muted user for filtering. Doesn't need additional options in my opinion since the "hide muted threads" will take care of that. Maybe eventually it'd be good to merge both functions into one if that's possible?
Hide replies to muted users
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
d49884a76f
Ghost left a comment

lgtm, just need to add this so it filters on "hide muted threads" when the select all is disabled

    hideStatus () {
      return (!this.shouldNotMute) && (
        (this.muted && this.hideFilteredStatuses) ||
        (this.userIsMuted && this.hideMutedUsers) ||
-       (this.status.thread_muted && this.hideMutedThreads) ||
+       ((this.status.thread_muted || this.mentionsMutedUser) && this.hideMutedThreads) ||
        (this.muteWordHits.length > 0 && this.hideWordFilteredPosts) ||
        (this.mentionsBlockedUser && this.hideThreadsWithBlockedUsers)
      )
    },
lgtm, just need to add this so it filters on "hide muted threads" when the select all is disabled ```suggestion hideStatus () { return (!this.shouldNotMute) && ( (this.muted && this.hideFilteredStatuses) || (this.userIsMuted && this.hideMutedUsers) || - (this.status.thread_muted && this.hideMutedThreads) || + ((this.status.thread_muted || this.mentionsMutedUser) && this.hideMutedThreads) || (this.muteWordHits.length > 0 && this.hideWordFilteredPosts) || (this.mentionsBlockedUser && this.hideThreadsWithBlockedUsers) ) }, ```
Hide muted replies if muted threads enabled
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
f951bc436e
Author
Contributor

Thanks, that works nicely. For some reason I thought it being marked muted would be enough

Thanks, that works nicely. For some reason I thought it being marked muted would be enough
Ghost approved these changes 2022-08-01 05:59:42 +00:00

using your code review powers i see
strong

using your code review powers i see strong
eris deleted branch hide-replies-muted 2022-08-07 08:05:11 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma-fe!90
No description provided.