Skip to content
Snippets Groups Projects
Commit 921cf3e9 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix NoMethodError (#4762)

parent 7dc50350
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment