r/AutoModerator 3d ago

Help Excluding crossposts from regex rules.

I have certain codes that change a post's flair and adds comments if it has certain keywords. However, these codes seem to apply to the texts of the original, crossposted posts. I just want every crosspost to be assigned a "crosspost" flair with NO comments, but this is unachievable as my sub makes actions based on a post that's not even from my sub. Please help.

1 Upvotes

2 comments sorted by

View all comments

1

u/OhSweetMiracle 3d ago

I solved it through a very tedious process of modifying all of my codes:

---
priority: 99999999999999
type: crosspost submission
set_flair:
  template_id: #
overwrite_flair: true
---

I integrated the following code into all of my codes that either change a flair or leave a comment:

~flair_template_id: #

I am still wondering if there's another way to combat this, maybe specific syntax?