mazipan / tanyaaja.in

❓Kumpulkan pertanyaan secara anonim dari siapa saja dengan mudah
https://tanyaaja.in
MIT License
134 stars 36 forks source link

FEAT: add a list of bad words and reject a question that contains bad word #130

Closed madjiebimaa closed 11 months ago

madjiebimaa commented 11 months ago

Closes #66

Description

Find a list of Indonesia bad words provided on the internet, format it as an Array, and use that Array to filter a question as a request from the Client.

Ask

vercel[bot] commented 11 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @mazipan on Vercel.

@mazipan first needs to authorize it.

mazipan commented 11 months ago

Use httpClient utils @madjiebimaa It will throw error on non-200 response

mazipan commented 11 months ago

What is the error message showing to the user when we face the bad words error?

We need to differentiate the error message, so user can understand that the question is containing bad words.

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tanyaaja ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 0:19am
madjiebimaa commented 11 months ago

What the error showing on the user when we hit the bad words error? We need to differentiate the error message. So user can understand that the question is containing bad words.

The error message is still the same as the previous version. Okay mas, I will change it.

mazipan commented 11 months ago

I will merge this PR first, we can create a separate PR for fixing the error message