Browse Source

Fix NoMethodError (#4762)

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
921cf3e9c8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/serializers/web/notification_serializer.rb

+ 2
- 2
app/serializers/web/notification_serializer.rb View File

@ -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

Loading…
Cancel
Save