mirror of
https://github.com/discourse/discourse.git
synced 2025-09-12 21:10:47 +08:00
rename topic_status_update to topic_timer
This commit is contained in:
parent
92d63b59a7
commit
55b61e9bea
39 changed files with 297 additions and 287 deletions
|
@ -60,7 +60,7 @@ class TopicViewSerializer < ApplicationSerializer
|
|||
:message_archived,
|
||||
:tags,
|
||||
:featured_link,
|
||||
:topic_status_update,
|
||||
:topic_timer,
|
||||
:unicode_title
|
||||
|
||||
# TODO: Split off into proper object / serializer
|
||||
|
@ -249,9 +249,9 @@ class TopicViewSerializer < ApplicationSerializer
|
|||
SiteSetting.tagging_enabled
|
||||
end
|
||||
|
||||
def topic_status_update
|
||||
TopicStatusUpdateSerializer.new(
|
||||
object.topic.topic_status_update, root: false
|
||||
def topic_timer
|
||||
TopicTimerSerializer.new(
|
||||
object.topic.topic_timer, root: false
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue