this post was submitted on 07 May 2024
95 points (98.0% liked)

Lemmy

12572 readers
3 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

If you write a plugin, let me know how it goes!

Link to PR

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Die4Ever 13 points 6 months ago* (last edited 6 months ago) (4 children)

a pretty simple plugin idea would be a regex to validate post titles, deny the post if the title is invalid

I might try it unless someone else beats me to it

I guess to start with it could be a config file with a dictionary of community name: regex

and later it could be made to use the database with an api to set the regexes, could even allow community moderators to set their own regexes (might need a maximum regex length, maximum number of parenthesis/groups in the regex pattern, and disable lookbehind/lookahead, for performance reasons)

[โ€“] starman 2 points 6 months ago

That's a good idea

load more comments (3 replies)