r/AutoModerator • u/Hierophantically • Sep 25 '26
Help - AutoMod Moderate user comments based on post flair
Hi! My subreddit is trying to implement an automod rule that only applies if the post DOES NOT have a certain flair. However, the code is misfiring -- I expect because I haven't configured it to correctly say 'if this is a comment, check the post flair, then do XYZ'. Here's what I have right now:
# YELLOW LIGHT: off topic (appearance)
# DOES NOT APPLY TO FLAIRS: Feedback Welcome (Anything Fashion)
~flair_template_id: "af132826-b523-11f1-a4e2-3af042506efc"
title+body: [hair, haircut, hair cut, mustache, moustache, beard, goatee, stubble, bald, shave, buzz, posture, smile]
action: filter
action_reason: "Off topic (appearance): {{match}}"Any help is appreciated!
4
Upvotes
2
u/Sephardson I'm working on the wiki here now! Sep 25 '26
You'll need to add a couple lines to the top of the rule -
type: comment
parent_submission:
And then the ~flair line will need to be indented directly under the parent_submission line
1
u/xargsman Sep 25 '26
here's what i do in my city subreddit to limit comments on certain flairs. it could be easily adapted to your needs.