Fix source for no bio

This commit is contained in:
Andrew Godwin 2023-01-15 16:29:11 -07:00
parent de9261251e
commit 57dfc330e0
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ class Identity(StatorModel):
Post.Visibilities.mentioned: "direct",
}
result["source"] = {
"note": html_to_plaintext(self.summary),
"note": html_to_plaintext(self.summary) if self.summary else "",
"fields": result["fields"],
"privacy": privacy_map[
Config.load_identity(self).default_post_visibility