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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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