mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-20 16:46:08 +00:00
e7aa2be828
* Change how hashtags are normalized * Fix tests
20 lines
332 B
Ruby
20 lines
332 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::FeaturedTagSerializer < ActiveModel::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :id, :name, :url, :statuses_count, :last_status_at
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
|
|
def url
|
|
short_account_tag_url(object.account, object.tag)
|
|
end
|
|
|
|
def name
|
|
object.display_name
|
|
end
|
|
end
|