Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mute user: Add user documentation page.
Abhijeet Prasad Bodas67cd385cece3
diff --git a/static/js/muting_ui.js b/static/js/muting_ui.jsindex b2835554116..308ebf0c1ac 100644--- a/static/js/muting_ui.js+++ b/static/js/muting_ui.js@@ -143,6 +143,7 @@ export function confirm_mute_user(user_id) {confirm_dialog.launch({parent: modal_parent,html_heading: $t({defaultMessage: "Mute user"}),+ help_link: "/help/mute-a-user",html_body,html_yes_button: $t({defaultMessage: "Confirm"}),on_click,diff --git a/templates/zerver/help/include/sidebar_index.md b/templates/zerver/help/include/sidebar_index.mdindex d09427df164..d46cfb938e2 100644--- a/templates/zerver/help/include/sidebar_index.md+++ b/templates/zerver/help/include/sidebar_index.md@@ -78,6 +78,7 @@* [PMs, mentions, and alerts](/help/pm-mention-alert-notifications)* [Mute a stream](/help/mute-a-stream)* [Mute a topic](/help/mute-a-topic)+* [Mute a user](/help/mute-a-user)* [Alert words](/help/add-an-alert-word)* [Disable new login emails](/help/disable-new-login-emails)* [Configure message notification emails](/help/configure-message-notification-emails)diff --git a/templates/zerver/help/moderating-open-organizations.md b/templates/zerver/help/moderating-open-organizations.mdindex a13480fe24e..16c19850127 100644--- a/templates/zerver/help/moderating-open-organizations.md+++ b/templates/zerver/help/moderating-open-organizations.md@@ -6,7 +6,8 @@ Moderation is a big part of making an open community work.## Prevention-Zulip has many features designed to simplify moderation:+Zulip has many features designed to simplify moderation by preventing+problematic behavior:* [Disallow disposable email addresses](/help/allow-anyone-to-join-without-an-invitation)or [require users to log in via GitHub or GitLab](/help/configure-authentication-methods).@@ -22,32 +23,39 @@ Zulip has many features designed to simplify moderation:post](/help/stream-sending-policy).* Add a [waiting period](/help/restrict-permissions-of-new-members) beforenew users can take disruptive actions.-* [Restrict email visibility](/help/restrict-visibility-of-email-addresses)- to reduce the likelihood of off-platform spam.+* [Restrict visibility of email addresses](/help/restrict-visibility-of-email-addresses)+ to prevent off-platform spam.* [Restrict wildcard mentions](/help/restrict-wildcard-mentions)so only [moderators](/help/roles-and-permissions) can mention everyone in your organization.## Response+The following features are an important part of an organization's+playbook when responding to abuse or spam that is not prevented by the+organization's policy choices.++* Individual users can [mute abusive users](/help/mute-a-user) to stop+ harassment that moderators have not yet addressed, or [collapse+ individual messages](/help/collapse-a-message) that they don't want+ to see.* [Ban (deactivate) users](/help/deactivate-or-reactivate-a-user) acting inbad faith. You can reactivate them later if they repent.-* Use the `streams:public sender:[email protected]`- [search operators](/help/search-for-messages) to find all messages sent by a user.+* Investigate behavior using the `streams:public+ sender:[email protected]` [search+ operators](/help/search-for-messages) to find all messages sent by a+ user.* Delete messages, [archive streams](/help/archive-a-stream), and[unsubscribe users from streams](/help/add-or-remove-users-from-a-stream).* [Rename topics](/help/rename-a-topic).-* [Change users' names](/help/change-a-users-name) (e.g. to "Spammer")+* [Change users' names](/help/change-a-users-name) (e.g. to "Name (Spammer)")+ for users who sent spam private messages to many community members.* [Deactivate bots](/help/deactivate-or-reactivate-a-bot) or[delete custom emoji](/help/add-custom-emoji#delete-custom-emoji).-* Instruct users to [collapse](/help/collapse-a-message) messages that they don't- want to see.## In the works* **Delete spammer**. This will wipe the user from your Zulip, by deletingall their messages and reactions, banning them, etc.-* **Mute user**. This will allow an individual user to hide the messages of- another individual user.* **New users join as guests**. This will allow users joining via openregistration to have extremely limited permissions by default, but stillenough permissions to ask the core team a question or to get a feel for yourdiff --git a/templates/zerver/help/mute-a-stream.md b/templates/zerver/help/mute-a-stream.mdindex 9a3a355bca2..b3f24295c31 100644--- a/templates/zerver/help/mute-a-stream.md+++ b/templates/zerver/help/mute-a-stream.md@@ -35,3 +35,5 @@ Muted streams still appear in the left sidebar, though they are grayed out.## Related articles* [Mute a topic](/help/mute-a-topic)++* [Mute a user](/help/mute-a-user)diff --git a/templates/zerver/help/mute-a-topic.md b/templates/zerver/help/mute-a-topic.mdindex 5462ffd7242..96d7036b195 100644--- a/templates/zerver/help/mute-a-topic.md+++ b/templates/zerver/help/mute-a-topic.md@@ -51,3 +51,5 @@ From there, you can also unmute any muted topics.## Related articles* [Mute a stream](/help/mute-a-stream)++* [Mute a user](/help/mute-a-user)diff --git a/templates/zerver/help/mute-a-user.md b/templates/zerver/help/mute-a-user.mdnew file mode 100644index 00000000000..332a133431c--- /dev/null+++ b/templates/zerver/help/mute-a-user.md@@ -0,0 +1,90 @@+# Mute a user++!!! tip ""+ This feature mutes a user from your personal perspective, and does not+ automatically notify anyone. Consider also reporting abusive behavior to+ organization [owners and administrators](/help/roles-and-permissions),+ who can take organization-level actions like+ [deactivating a user](/help/deactivate-or-reactivate-a-user).++You can mute any user you do not wish to interact with. Muting someone will+have the following effects:++* All messages sent by a muted user will automatically be [marked as+ read](/help/marking-messages-as-read) for you, and will never+ generate any desktop, email, or mobile push notifications.++* Muted users are hidden from [**Private+ messages**](/help/private-messages) in the left sidebar and the list+ of users in the right sidebar. Private messages between you and a+ muted user will only be visible if you [explicitly+ search](/help/search-for-messages) for your private messages with+ the user.++* All stream messages and group private messages sent by muted users+ are hidden behind a **Click to reveal** banner. This allows you to+ understand whether other users' messages are responses to messages+ sent by a muted user, while only seeing the muted user's name,+ profile picture, or message content for messages you have not opted+ into reading.++* Muted users have their name displayed as "Muted user" for [emoji+ reactions][view-emoji-reactions], [polls](/help/create-a-poll), and+ when displaying the recipients of group private messages sent by+ unmuted users.++* Muted users are excluded from the autocomplete for composing a+ private message or [mentioning a user](/help/mention-a-user-or-group).++* To avoid interfering with administration, settings UI, such as the+ list of subscribers to a stream or members of the organization,+ display muted users name and other details as normal.++!!! tip ""+ Zulip offers no way to distinguish a user+ that has muted you from a user that is ignoring you.+++[view-emoji-reactions]: /help/emoji-reactions#see-who-reacted-to-a-message++### From the message view++{start_tabs}++1. Click on a user's profile picture or [mention](/help/mention-a-user-or-group).++1. Click **Mute this user**.++1. On the confirmation popup, click **Confirm**.++{end_tabs}++### Via the right sidebar++{start_tabs}++1. Hover over a user's name in the right sidebar.++1. Click on the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to+ the right of their name.++1. Click **Mute this user**.++1. On the confirmation popup, click **Confirm**.++{end_tabs}++### See your list of muted users++{start_tabs}++{settings_tab|muted-users}++{end_tabs}++From there, you can also search for and **unmute** users.++## Related articles++* [Mute a stream](/help/mute-a-stream)+* [Mute a topic](/help/mute-a-topic)diff --git a/zerver/lib/markdown/help_settings_links.py b/zerver/lib/markdown/help_settings_links.pyindex d8f14a6011b..f2803cb9e81 100644--- a/zerver/lib/markdown/help_settings_links.py+++ b/zerver/lib/markdown/help_settings_links.py@@ -23,6 +23,7 @@ link_mapping = {"alert-words": ["Settings", "Alert words", "/#settings/alert-words"],"uploaded-files": ["Settings", "Uploaded files", "/#settings/uploaded-files"],"muted-topics": ["Settings", "Muted topics", "/#settings/muted-topics"],+ "muted-users": ["Settings", "Muted users", "/#settings/muted-users"],"organization-profile": ["Manage organization","Organization profile",diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 1f5a87597fb..53863aa0727 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -6004,8 +6004,8 @@ paths:operationId: mute_usertags: ["users"]description: |- This endpoint mutes a user. Messages sent by users you've muted will- be automatically marked as read and hidden.+ This endpoint [mutes a user](/help/mute-a-user). Messages sent by users+ you've muted will be automatically marked as read and hidden.`POST {{ api_url }}/v1/users/me/muted_users/{muted_user_id}`