about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-14 19:19:32 +0200
committerGitHub <noreply@github.com>2018-08-14 19:19:32 +0200
commit8e111b753a3411b258cdb008c9a53bad696f4df1 (patch)
tree6ae9387736b8abf180c93f7f0d25c6952c04b9b2 /app/serializers
parent018a9e4e7fdfac0f2e482f4b5fa66247afbc2ddb (diff)
Move status counters to separate table, count replies (#8104)
* Move status counters to separate table, count replies

* Migration to remove old counter columns from statuses table

* Fix schema file
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/status_serializer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index fe3dc9bfc..61423f961 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -3,7 +3,8 @@
 class REST::StatusSerializer < ActiveModel::Serializer
   attributes :id, :created_at, :in_reply_to_id, :in_reply_to_account_id,
              :sensitive, :spoiler_text, :visibility, :language,
-             :uri, :content, :url, :reblogs_count, :favourites_count
+             :uri, :content, :url, :replies_count, :reblogs_count,
+             :favourites_count
 
   attribute :favourited, if: :current_user?
   attribute :reblogged, if: :current_user?