Unlinkify profile values in edit fields

This commit is contained in:
Andrew Godwin 2023-01-19 10:30:26 -07:00
parent edef03efb1
commit cfb4975fdf

View file

@ -891,7 +891,18 @@ class Identity(StatorModel):
} }
result["source"] = { result["source"] = {
"note": html_to_plaintext(self.summary) if self.summary else "", "note": html_to_plaintext(self.summary) if self.summary else "",
"fields": result["fields"], "fields": (
[
{
"name": m["name"],
"value": strip_html(m["value"], linkify=False),
"verified_at": None,
}
for m in self.metadata
]
if self.metadata
else []
),
"privacy": privacy_map[ "privacy": privacy_map[
Config.load_identity(self).default_post_visibility Config.load_identity(self).default_post_visibility
], ],