Fix source for no bio

This commit is contained in:
Andrew Godwin 2023-01-15 16:29:11 -07:00
parent de9261251e
commit 57dfc330e0

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