XF 2.0 Entity structure change on post render only

adamsmasher

Active member
Is there a way to update the structure of the post entity, but only when displaying a thread and not when posting to the thread. The columns I'm adding are needed when you view a post, but I don't want them added to the structure when trying to save a new post as these columns don't actually exist in the db table(s) for posts. I'm using a code event listener right now that listens to event_structure with the event hint XF\Entity\Post, but that fires on both page view and when making a new post.

Thanks!
 
Top Bottom