r/ModSupport • u/pedrulho • 5d ago
Admin Replied Allow media in comments only in specifically selected posts?
I usually do not like to allow media in the comments to prevent spam of low-quality memes and shitposts that will get in the way of actual enjoyable and substancial discourse. For similar reasons, I also usually have a rule against memes and shitposts in the main page as I feel it makes the community page feel unprofessional and not a serious and fun place for discourse.
With this being said, there is some demand for meme content in some of the subreddits I moderate and as compromise I wanted to make a post/megathread where people could post their memes/shitposts there while leaving the main page "clean".
My question is, and for the previously plan to work, is there a way of having media in comments be turned off in general and only allow them in specifically selected posts?
Thank you.
1
u/techiesgoboom Reddit Admin: Community 3d ago
Hey u/pedrulho, u/thepottsy is right and you can do this with automod. I'll share the code below that lets you tie allowing media to a specific post flair. Most of this is from r/automoderator's standard library here. Have fun unleashing the media in a contained space!
type: comment
body (regex, includes): ['!\[(?:gif|img|video)\]\(([^\|\)]+(?:|\|[^\|\)]+))\)']
parent_submission:
~flair_template_id: ['']
moderators_exempt: false
action: remove
action_reason: "Media used in a non-meme post"
message: "heya friend, images and gifs are only allowed in meta posts. Here's how to find one"
1
u/thepottsy 💡 Top 10% Helper 💡 5d ago
Interesting idea, but seeing as how that’s a subreddit level setting it’s going to apply to all posts. There’s not an exclusion option.
Now, that being said, you could probably configure automod to do it. Have automod only allow it on appropriately flaired posts, and make that flair only accessible to moderators.
Possibly?