about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-17 19:56:35 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:41:03 -0500
commitaf8a1309bde2a85bd94d06f3f152ae6355677095 (patch)
tree158298011141f9c586c75da60c0298fcf3764067 /app/serializers/rest
parent120683f52266900d0fede7bd67c43133bbc26bea (diff)
[Feature] Introduce nest_level attribute to posts and API to help apps visualize nesting in threads
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/status_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index 26748f683..6baa20ca9 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -4,7 +4,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
   attributes :id, :created_at, :in_reply_to_id, :in_reply_to_account_id,
              :sensitive, :spoiler_text, :visibility, :language,
              :uri, :url, :replies_count, :reblogs_count,
-             :favourites_count
+             :favourites_count, :nest_level
 
   # Monsterfork additions
   attributes :updated_at, :edited