XF 2.2 Difference reaction / new post

Robert9

Well-known member
I have done a new addon to make a thread "moderated"; everything is fine so far, but:

If another user adds an reaction the reacted post is handled like a new post.

The listener i use is:

Code:
public static function threadEntityPostSave(\XF\Mvc\Entity\Entity $entity)
{

here i need something like:

is it a new post, go on!
or
is it a reaction, do nothing!

Any idea for this, please?
 
Top