mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
Fix setting empty summary
This commit is contained in:
parent
da38889aa7
commit
df90285356
1 changed files with 4 additions and 1 deletions
|
@ -82,5 +82,8 @@ class IdentityService:
|
|||
"""
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue