Deal with initially-null summary

Fixes #234
This commit is contained in:
Andrew Godwin 2022-12-22 01:01:26 +00:00
parent 3e2ae1b209
commit 3ebbb79bb5
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class ProfilePage(FormView):
identity = self.request.identity identity = self.request.identity
return { return {
"name": identity.name, "name": identity.name,
"summary": html_to_plaintext(identity.summary), "summary": html_to_plaintext(identity.summary) if identity.summary else "",
"icon": identity.icon and identity.icon.url, "icon": identity.icon and identity.icon.url,
"image": identity.image and identity.image.url, "image": identity.image and identity.image.url,
"discoverable": identity.discoverable, "discoverable": identity.discoverable,