mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:06:29 +08:00
b58867b6e9
Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
20 lines
290 B
Ruby
20 lines
290 B
Ruby
class ReviewableTopicSerializer < ApplicationSerializer
|
|
attributes(
|
|
:id,
|
|
:title,
|
|
:fancy_title,
|
|
:slug,
|
|
:archived,
|
|
:closed,
|
|
:visible,
|
|
:archetype,
|
|
:relative_url,
|
|
:stats,
|
|
:reviewable_score
|
|
)
|
|
|
|
def stats
|
|
@options[:stats][object.id]
|
|
end
|
|
end
|