XF 2.2 threadEntityPostSave

Robert9

Well-known member
threadEntityPostSave

This function is used in several addons. For me it seems this function is called everytime when a post is changed.
To be changed means add/edit, but also a like? Maybe more things?

If so, then a lot of addons do things for a like that are not necessary, like regex text for example.

What is the best way to proof here for add, edit, like, please?

add: isInsert?
edit: maybe is edit_user = post_user?
like: maybe is edit_user != post_user?
 
As I told you on my forum in private, you need to check if the field you are focusing on has changed.
That is done through the isChanged function in an entity.
 
Back
Top Bottom