diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-07 16:19:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 16:19:28 +0200 |
commit | 6e1261f277411300e4f1d24f8c1b14ad1a165915 (patch) | |
tree | c5df6dd780eecad7536f9d921dac3edcd7e912a1 /app | |
parent | 91d548f7e6a0947e80be1dd4d4341b1d99c461e4 (diff) |
Fix notifications including wrong status in JSON (#4097)
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/notification_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/notification_serializer.rb b/app/serializers/rest/notification_serializer.rb index 97fadf32e..f95d099a3 100644 --- a/app/serializers/rest/notification_serializer.rb +++ b/app/serializers/rest/notification_serializer.rb @@ -4,7 +4,7 @@ class REST::NotificationSerializer < ActiveModel::Serializer attributes :id, :type, :created_at belongs_to :from_account, key: :account, serializer: REST::AccountSerializer - belongs_to :status, if: :status_type?, serializer: REST::StatusSerializer + belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer def status_type? [:favourite, :reblog, :mention].include?(object.type) |