# PostCreator לא שולח הודעות פרטיות

**URL:** https://meta.discourse.org/t/postcreator-not-sending-pm/368518
**Category:** Development
**Created:** [2 ביוני,‏ 2025,‏ 10:29am UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518 "2025-06-02T10:29:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2 ביוני,‏ 2025,‏ 10:29am UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/1 "2025-06-02T10:29:08Z")

</div>

For some weird reason, PMs are not sent to the Admins group on my dev install.  
The job is running, so I don’t see why the PM wouldn’t be sent, even though its sending criteria is met?

> <https://github.com/NateDhaliwal/find-topics-to-reset-bump-date/blob/main/app/jobs/scheduled/find_topics_to_reset.rb>

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2 ביוני,‏ 2025,‏ 10:55am UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/2 "2025-06-02T10:55:43Z")

</div>

אני אוסיף `puts` לפני הקריאה ל-PostCreator ואקצה את מה שהיא מחזירה למשתנה כדי שתוכל להדפיס אותו לאחר שהיא נקראת.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2 ביוני,‏ 2025,‏ 12:08pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/3 "2025-06-02T12:08:00Z")

</div>

כן… עשיתי את זה כדי לראות אם העבודה רצה, ועוד אחת לפני זה, אבל שום דבר לא הודפס. אני צריך לחזור על הלוגיקה של משפט התנאי שלי, אני חושב.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2 ביוני,‏ 2025,‏ 12:11pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/4 "2025-06-02T12:11:08Z")

</div>

כמה דברים:

- ציין אימות כבוי מכיוון שזה עלול לחסום יצירה
- כל 12 שעות זה פעמיים ביום בניגוד לתגובה שלך למקרה שרצית שזה יישלח רק פעם ביום.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2 ביוני,‏ 2025,‏ 12:13pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/5 "2025-06-02T12:13:13Z")

</div>

אוי סליחה, הייתי צריך להוסיף: סביבת הפיתוח שלי גורמת לזה לרוץ כל 10 שניות.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2 ביוני,‏ 2025,‏ 12:16pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/6 "2025-06-02T12:16:27Z")

</div>

Your "end"s look untidy and the indentation should be tidied up.

You may have one too many/in the wrong place?

 ![The image is a screenshot displaying a section of Python code highlighting a line within a block of code, surrounded by a red ellipse. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/f/6/7/f67090f7e620ce81042062917629d214c603ac6f.png)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2 ביוני,‏ 2025,‏ 12:18pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/7 "2025-06-02T12:18:59Z")

</div>

אולי הייתי צריך להבהיר - גם כשכל הבדיקות עברו, אף הודעה פרטית לא נשלחה. אולי כדאי לי לנסות לעשות אפשרות סימון במקום?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2 ביוני,‏ 2025,‏ 12:19pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/8 "2025-06-02T12:19:04Z")

</div>

Is anyone allowed to message your admin group? I think by default nobody is  
 ![image](https://global.discourse-cdn.com/meta/original/4X/a/5/9/a59123b508c6287386d32e90595561bad2666fa7.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2 ביוני,‏ 2025,‏ 12:50pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/9 "2025-06-02T12:50:30Z")

</div>

> [@Moin](#):
>
> anyone allowed to message your admin group

Good one! Does that call work at the rails console? Also, try just sending it to the admin user.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2 ביוני,‏ 2025,‏ 1:39pm UTC](https://meta.discourse.org/t/postcreator-not-sending-pm/368518/10 "2025-06-02T13:39:35Z")

</div>

Yes, I can now message the admins group after changing that setting. What puzzles me now, is that the json request doesn’t even seem to return anything 🤔…
