Default view only showing 2 poster avatars, unlike Discourse Meta


(Bryan Underwood) #1

In my forum, I only see 2 user avatars next to the topic title & category…
image

unlike Discourse Meta which has up to 5.

image

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:

image

Thoughts?


(Jeff Atwood) #2

Sounds like something tweaky is going on? There are daily reconciliation tasks to fix any data oddities and also statistics tasks that run as well.


(Bryan Underwood) #3

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 @lead4good here

#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"

(Bryan Underwood) #4

Whatever it was, it’s fixed overnight. Any way to trigger the task via Sidekiq?