mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2026-01-12 13:20:06 +01:00
feat: implement mute conversation support for Mastodon
This feature allows users to visually hide muted conversations from the Home timeline. It includes: - Automatic filtering of muted posts in Home. - Immediate visual removal of posts when muting a conversation. - New 'mute_conversation' action in context menu and keyboard shortcuts. - Default shortcut: Alt+Win+Shift+Delete - Win10/11 shortcut: Ctrl+Alt+Win+Backspace
This commit is contained in:
@@ -140,6 +140,11 @@ def evaluate_filters(post: dict, current_context: str) -> str | None:
|
||||
- None if no applicable filters are found, meaning the post should be shown normally.
|
||||
"""
|
||||
filters = post.get("filtered", None)
|
||||
|
||||
# Automatically hide muted conversations from home timeline.
|
||||
if current_context == "home" and post.get("muted") == True:
|
||||
return "hide"
|
||||
|
||||
if filters == None:
|
||||
return
|
||||
warn_filter_title = None
|
||||
|
||||
Reference in New Issue
Block a user