Change featured hashtags to be displayed in navigation panel (#19382)

This commit is contained in:
Eugen Rochko
2022-10-19 11:30:59 +02:00
committed by GitHub
parent 1b83040bd4
commit aefa9253d6
9 changed files with 161 additions and 101 deletions

View File

@@ -16,4 +16,12 @@ class REST::FeaturedTagSerializer < ActiveModel::Serializer
def name
object.display_name
end
def statuses_count
object.statuses_count.to_s
end
def last_status_at
object.last_status_at&.to_date&.iso8601
end
end