mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
topics with no reply data were strings
This commit is contained in:
@ -939,7 +939,7 @@ class Topic < ActiveRecord::Base
|
||||
builder.where("t.category_id = :category_id", category_id: opts[:category_id]) if opts[:category_id]
|
||||
builder.where("t.archetype <> '#{Archetype.private_message}'")
|
||||
builder.where("t.deleted_at IS NULL")
|
||||
builder.exec.first["count"]
|
||||
builder.exec.first["count"].to_i
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user