From 966e05ced219cd1e35bab2f17986946147910104 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 1 Sep 2017 20:50:42 +0200 Subject: [PATCH] Fix NoMethodError (#4762) --- app/serializers/web/notification_serializer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/serializers/web/notification_serializer.rb b/app/serializers/web/notification_serializer.rb index 0fe75f3a8d..fd35775954 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