mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Add post count to similar posts popup. Fix alignment.
This commit is contained in:
@ -2,5 +2,5 @@ require_dependency 'age_words'
|
||||
|
||||
# The most basic attributes of a topic that we need to create a link for it.
|
||||
class BasicTopicSerializer < ApplicationSerializer
|
||||
attributes :id, :fancy_title, :slug
|
||||
attributes :id, :fancy_title, :slug, :posts_count
|
||||
end
|
||||
|
@ -3,7 +3,6 @@ require_dependency 'age_words'
|
||||
class ListableTopicSerializer < BasicTopicSerializer
|
||||
|
||||
attributes :reply_count,
|
||||
:posts_count,
|
||||
:highest_post_number,
|
||||
:image_url,
|
||||
:created_at,
|
||||
|
Reference in New Issue
Block a user