امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I am writing an add-on to send a new post into moderation if it met certain criteria.
I am currently using the entity_post_save event listener, to set the post's message_state to 'moderated', by using the $entity->set.
But it doesn't work.
What is the proper way to update the message_state of a post before the transaction is committed?
I am currently using the entity_post_save event listener, to set the post's message_state to 'moderated', by using the $entity->set.
But it doesn't work.
What is the proper way to update the message_state of a post before the transaction is committed?
