thunderbird / appointment

Invite others to grab times on your calendar. Choose a date. Make appointments as easy as it gets.
https://appointment.day
Mozilla Public License 2.0
177 stars 6 forks source link

Filter profanity/etc from public user names/urls #574

Closed malini closed 1 hour ago

malini commented 1 month ago

Is your feature request related to a problem? Please describe. We do not filter user's shortUrls and we should check them against a list of known profanity/etc, so we do not allow harmful language.

Describe the solution you'd like Determine if Mozilla maintains a profanity filter somewhere we can leverage, or find a suitable alternative (maybe https://github.com/coffee-and-fun/google-profanity-words ?

When users select their username/shortUrls/etc, we should run their input through the filter before accepting it.

malini commented 1 month ago

i put it as beta v2 because it would be best to have this before we have non-mozillian users

devmount commented 2 weeks ago

I analyzed the code base and found the following place where a profanity filter might make sense:

@malini Are those places enough for beta for now? Is a frontend filter sufficient for now?

malini commented 1 week ago

@devmount yup, thanks. And I didn't think of schedule name, so thank you! that's a great suggestion.

devmount commented 2 days ago

Ok this was more pain than expected 😅 How hard can it be to create a working lib that provides filtering against a fixed set of words 🙈

So I went with the 2nd one for now, since it was the only one that worked anyway. If we find another more suitable lib that contains other languages as well, we can easily switch.

image image image profanity1 profanity2

devmount commented 2 days ago

Good news: The maintainer of https://github.com/2Toad/Profanity is quite active and directly responded to my feature request for multiple languages. So we might just keep that for now.