PostCreator لا يرسل رسالة خاصة

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?

I would add a puts before the call to PostCreator and assign what it returns to a variable to you can print it after it’s called.

Yes… I did do that to see if the job runs, and another puts before that, but nothing was printed. I’ll need to revisit my if statment logic, I think.

Couple of things:

  • Specify validation off as that might block creation
  • Every 12 hours is twice a day in contrast to your comment in case you wanted it sent just once a day.
إعجاب واحد (1)

Oh sorry, I should have added: my dev env makes it run every 10 seconds.

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

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

إعجابَين (2)

Maybe I should have clarified - even when all checks passed, no pm would send. Perhaps I should try doing a flagging option instead?

Is anyone allowed to message your admin group? I think by default nobody is
image

إعجابَين (2)

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

إعجاب واحد (1)

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 :thinking:

إعجاب واحد (1)