New accounts still being able to comment

https://www.reddit.com/r/AutoModerator/comments/1ibzbr9/new_accounts_still_being_able_to_comment/

created by This-is-my-n0rp_acc on 28/01/2025 at 11:18 UTC

1 upvotes, 1 top-level comments (showing 1)

So I have the following in my automoderator code

`---`

`# This will remove a post if the user has an account that is less than 7 days old.`

`priority: 1`

`type: any`

`author:`

`account_age: < 7 days`

`action: remove`

`action_reason: Your account is too new, your post has been removed.`

`set_flair:`

`text: "New Account detected."`

`overwrite_flair: true`

`comment: |`

`Hello /u/{{author}}`

`Your {{kind}} has been removed from /r/{{subreddit}} because your account is too new.`

`This is to combat SPAM and BOTs.`

`** Your {{kind}} is currently being looked at by the Moderation Team and will either be APPROVED or DENIED. **`

`comment_locked: true`

`comment_stickied: true`

`message_subject: Your account is too new, your post has been removed.`

`message: |`

`Hello /u/{{author}}`

`Your {{kind}} has been removed from /r/{{subreddit}} because your account is too new.`

`This is to combat SPAM and BOTs.`

`** Your {{kind}} is currently being looked at by the Moderation Team and will either be APPROVED or DENIED. **`

It seems that they are not able to post but can comment, does anything standout as wrong with the code?

Comments

Comment by CR29-22-2805 at 29/01/2025 at 00:38 UTC

2 upvotes, 2 direct replies

When you say that they’re able to comment, do you mean that their comments are *not* removed by automoderator and those comments are visible for everyone to see?

If so, then I’m wondering if the `set_flair` parameter is interfering with the `type: any` parameter. Try bifurcating the rule into post removals and comment removals. Do not include any post-specific parameters in the comment rule.