Change how hashtags are normalized (#18795)
* Change how hashtags are normalized * Fix tests
This commit is contained in:
parent
12ed2d793b
commit
e7aa2be828
29 changed files with 193 additions and 51 deletions
|
@ -12,4 +12,8 @@ class REST::FeaturedTagSerializer < ActiveModel::Serializer
|
|||
def url
|
||||
short_account_tag_url(object.account, object.tag)
|
||||
end
|
||||
|
||||
def name
|
||||
object.display_name
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,4 +8,8 @@ class REST::TagSerializer < ActiveModel::Serializer
|
|||
def url
|
||||
tag_url(object)
|
||||
end
|
||||
|
||||
def name
|
||||
object.display_name
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue