about summary refs log tree commit diff
path: root/app/serializers/rest/featured_tag_serializer.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-19 11:30:59 +0200
committerGitHub <noreply@github.com>2022-10-19 11:30:59 +0200
commitaefa9253d61def572396c18a8d2ac3cc706ffa2e (patch)
treeb4a2e3e57323118249eddf4cb439505f1bc5b08c /app/serializers/rest/featured_tag_serializer.rb
parent1b83040bd45770ff831ff697418aaa2468a1516a (diff)
Change featured hashtags to be displayed in navigation panel (#19382)
Diffstat (limited to 'app/serializers/rest/featured_tag_serializer.rb')
-rw-r--r--app/serializers/rest/featured_tag_serializer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/serializers/rest/featured_tag_serializer.rb b/app/serializers/rest/featured_tag_serializer.rb
index 8abcd9b90..c4b35ab03 100644
--- a/app/serializers/rest/featured_tag_serializer.rb
+++ b/app/serializers/rest/featured_tag_serializer.rb
@@ -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