The user Bryan_Underwood_CA noticed that their forum only displays 2 user avatars next to topic titles, unlike Discourse Meta which shows up to 5. They observed that during repeated import and delete operations, they briefly saw 5 avatars, suggesting a data inconsistency. codinghorror suggested that daily reconciliation tasks might resolve such issues. Bryan_Underwood_CA confirmed they were performing frequent topic deletions using a script, and later noted that the issue resolved overnight. They asked if the reconciliation task could be manually triggered via Sidekiq Bryan_Underwood_CA.
It’s not a CSS or display issue. The rendered code via inspector shows there are actually only 2 avatars rendered on the markup. I can’t seem to find a setting or config to change this. Yesterday as I was playing with import, delete, import, delete, I did indeed see 5 avatars next to the active posts like this:
Hmmm… maybe I’m trying too hard. Yes, lots of import, delete, repeat. Here’s what I’m doing, for the record. Thanks to a modified version of @lead4goodhere
#I am running from /var/discourse/myscripts
require_relative '../discourse/config/environment'
cnt = 0
Topic.find_each do |t|
# Earlier topics ok to keep like FAQ, Welcome, etc.
# t.user_id -2 is discobot. I don't want to delete all
# of the "Greetings" topics for my new users
if t.id > 6 && t.user_id != -2
puts "Topic: #{t.id}, #{t.title}, #{t.user_id}"
t.destroy
cnt = cnt +1
end
end
puts "Deleted #{cnt} topics where t.id > 6 && t.user_id != -2"