Fix setting empty summary

This commit is contained in:
Andrew Godwin 2022-12-21 21:56:45 +00:00
parent da38889aa7
commit df90285356

View file

@ -82,5 +82,8 @@ class IdentityService:
""" """
Safely sets a summary and turns linebreaks into HTML Safely sets a summary and turns linebreaks into HTML
""" """
self.identity.summary = linebreaks_filter(strip_html(summary)) if summary:
self.identity.summary = linebreaks_filter(strip_html(summary))
else:
self.identity.summary = None
self.identity.save() self.identity.save()