fsvreddit / automodmail

A Modmail automator for Devvit
https://developers.reddit.com/apps/auto-modmail
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

When responding to a private modnote, {{author}} placeholder not being populated as desired. #53

Open Munkenmo opened 1 week ago

Munkenmo commented 1 week ago

I'm setting up a few rules to serve as mod macro responses, (similar to the example in the wiki).

Rule :

---
# Macro response for crowd sourcing / self promotion
is_reply: true
body (regex): ['!Rule.?8.?']
author: 
    is_moderator: true
reply: 'Hi {{author}}. Thanks for reaching out. Unfortunately this would be considered a breach of [Rule 8 : No Crowdsourcing / Self Promotion](https://www.reddit.com/r/newzealand/about/rules/), so we won’t approve such a post.'
archive: true
---

In the reply, the {{author}} parameter isn't being populated as I'd expect :


As I can see the merit in maintaining the status quo, perhaps an additional place holder {{original_author}} would be a good solution?

fsvreddit commented 1 week ago

Good idea, I'll look at getting this done in a future version. In the meantime, I can see if I can make the docs clearer.

fsvreddit commented 1 week ago

I'll simply treat {{author}} as the person the modmail thread is about, whether they're the message writer or not. It's how I originally intended it.

fsvreddit commented 1 week ago

I'll simply treat {{author}} as the person the modmail thread is about, whether they're the message writer or not. It's how I originally intended it.