User is omitted from frequent posters after moving posts

I’m facing an odd situation (2.2.0.beta8), where one user is omitted from the frequent posters list for a topic.

It shows two posters, as in

where in fact three posters are participating in the topic

I’ve also checked the JSON representation of this post and it has 3 entries in participants and participant_count = 3.

Any ideas what’s going on there?

My guess is, that moving a post to another topic (as it was in this case) somehow brings the list of featured topic users out of sync. I had a look at the code, but didn’t find anything that validates this assumption.

I’ve fixed this with

Topic.where(id: <tid>).find_each do |topic|