PM Like Display on Import

I’ve found after doing an import that likes on posts in private topics aren’t displaying properly. This is on the button:

image

When imported, no PM posts show the like count on the button. However, if you click the button to add a like, the number will update to the correct count. Does anyone know where this is controlled and if I can force an update? Is this a caching issue, and if so, where?
Public posts show the correct count - the issue appears to be limited to all posts on private topics.

Perhaps @tshenry might have an idea, since they were able to help us regenerate top topics previously.

Took a guess and it looks to have worked. I ran the update_counters method against all the post actions. Something like this on the rails console:

PostAction.all.find_each do |t|
  putc '.'
  t.update_counters
end
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.