mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
5adc486cef
Cleanup uneeded column
22 lines
287 B
Ruby
22 lines
287 B
Ruby
class TopicPostCountSerializer < BasicUserSerializer
|
|
|
|
attributes :post_count
|
|
|
|
def id
|
|
object[:user].id
|
|
end
|
|
|
|
def username
|
|
object[:user].username
|
|
end
|
|
|
|
def post_count
|
|
object[:post_count]
|
|
end
|
|
|
|
def uploaded_avatar_id
|
|
object[:user].uploaded_avatar_id
|
|
end
|
|
|
|
end
|