I can’t seem to find where those heart clicks go in the Discourse database.
Can somebody point me in the right direction?
Thanks!
I can’t seem to find where those heart clicks go in the Discourse database.
Can somebody point me in the right direction?
Thanks!
Have a look at PostAction – there are a few different types.
https://github.com/discourse/discourse/blob/master/app/models/post_action.rb
I sometimes just update the like_count in the post model. I’m not quite sure if those might somehow get overwritten by some process that builds that number from the post_action model, though.
If Xenforo has a table with every user’s every like, then you can import into post_actions if not, you can just stick it in the like_count and hope for the best.