about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-01 20:50:42 +0200
committerGitHub <noreply@github.com>2017-09-01 20:50:42 +0200
commit921cf3e9c8087ce0cd9923f40a8f9b565d07a146 (patch)
tree3b6024d77f39f6aecd1fc6be75c0cfd2a5b26d6c /app
parent7dc5035031a697e7a2726fcd787fc9c294751027 (diff)
Fix NoMethodError (#4762)
Diffstat (limited to 'app')
-rw-r--r--app/serializers/web/notification_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/web/notification_serializer.rb b/app/serializers/web/notification_serializer.rb
index 0fe75f3a8..fd3577595 100644
--- a/app/serializers/web/notification_serializer.rb
+++ b/app/serializers/web/notification_serializer.rb
@@ -9,7 +9,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
     include ActionView::Helpers::SanitizeHelper
 
     attributes :content, :nsfw, :url, :actions,
-               :access_token, :message
+               :access_token, :message, :dir
 
     def content
       decoder.decode(strip_tags(body))
@@ -117,7 +117,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
     end
   end
 
-  attributes :title, :dir, :image, :badge, :tag,
+  attributes :title, :image, :badge, :tag,
              :timestamp, :icon
 
   has_one :data