diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
commit | 002d2729fb342ec899d4322bbd64331da7d22a03 (patch) | |
tree | 2316623ed73758bd1d61477d94aee3492744933c /app/serializers | |
parent | bb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff) | |
parent | f47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/web/notification_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/web/notification_serializer.rb b/app/serializers/web/notification_serializer.rb index ee83ec8b2..c5a908b19 100644 --- a/app/serializers/web/notification_serializer.rb +++ b/app/serializers/web/notification_serializer.rb @@ -34,6 +34,6 @@ class Web::NotificationSerializer < ActiveModel::Serializer def body str = strip_tags(object.target_status&.spoiler_text&.presence || object.target_status&.text || object.from_account.note) - truncate(HTMLEntities.new.decode(str.to_str), length: 140) # Do not encode entities, since this value will not be used in HTML + truncate(HTMLEntities.new.decode(str.to_str), length: 140, escape: false) # Do not encode entities, since this value will not be used in HTML end end |