Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Muting Multiple Words or Phrases at Once #5366

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vhonorato02
Copy link

@vhonorato02 vhonorato02 commented Sep 16, 2024

This pull request adds support for muting multiple words or phrases separated by commas. Previously, users could only mute one word at a time. This enhancement allows users to input several words or phrases in one action, improving efficiency when managing muted content.

Key Changes:
Updated submit Function:
Now accepts multiple words/phrases separated by commas.
Sanitizes and trims each word before submission.
Sends all words to the backend in a single request.

Sanitization and Validation:
Handles empty or invalid entries by trimming and ignoring them.

Maintains Compatibility:
The system still processes individual words as before, but now allows for batch submission.

Why This Change Matters:
Increased Efficiency: Users can mute multiple terms at once, saving time.
Enhanced Usability: Simplifies the process for managing multiple related terms.

Testing:
Verified single and multiple word inputs, ensuring correct handling and muting.
Validated edge cases like empty inputs or extra spaces.

Adiciona funcionalidade para múltiplas palavras silenciadas separadas por vírgulas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants