mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 06:13:43 +01:00
Fix NoMethodError (#4762)
This commit is contained in:
parent
7dc5035031
commit
921cf3e9c8
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
|
||||||
include ActionView::Helpers::SanitizeHelper
|
include ActionView::Helpers::SanitizeHelper
|
||||||
|
|
||||||
attributes :content, :nsfw, :url, :actions,
|
attributes :content, :nsfw, :url, :actions,
|
||||||
:access_token, :message
|
:access_token, :message, :dir
|
||||||
|
|
||||||
def content
|
def content
|
||||||
decoder.decode(strip_tags(body))
|
decoder.decode(strip_tags(body))
|
||||||
|
@ -117,7 +117,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
attributes :title, :dir, :image, :badge, :tag,
|
attributes :title, :image, :badge, :tag,
|
||||||
:timestamp, :icon
|
:timestamp, :icon
|
||||||
|
|
||||||
has_one :data
|
has_one :data
|
||||||
|
|
Loading…
Reference in a new issue