From da00a67cb5c4c438b38c496d274adc13de27954f Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 24 Dec 2022 12:49:59 -0700 Subject: [PATCH] Don't double escape summary --- users/models/identity.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/models/identity.py b/users/models/identity.py index 8249781..866d542 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -7,7 +7,6 @@ import urlman from asgiref.sync import async_to_sync, sync_to_async from django.conf import settings from django.db import IntegrityError, models -from django.template.defaultfilters import linebreaks_filter from django.utils import timezone from django.utils.functional import lazy from lxml import etree @@ -467,7 +466,7 @@ class Identity(StatorModel): if self.name: response["name"] = self.name if self.summary: - response["summary"] = str(linebreaks_filter(self.summary)) + response["summary"] = self.summary if self.icon: response["icon"] = { "type": "Image",