mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 18:05:58 +08:00
d5285e2d93
When we update the <title> after editing a topic, we should use the raw `topic.title` as `topic.fancy_title` may contains some htmlentities and will be displayed as is in the browser tab. This fix the following issue: > Incorrect HTML title after editing title/category of topic > http://meta.discourse.org/t/incorrect-html-title-after-editing-title-category-of-topic/8136
5 lines
192 B
Ruby
5 lines
192 B
Ruby
# The most basic attributes of a topic that we need to create a link for it.
|
|
class BasicTopicSerializer < ApplicationSerializer
|
|
attributes :id, :title, :fancy_title, :slug, :posts_count
|
|
end
|