mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 02:31:00 +00:00
Unlinkify profile values in edit fields
This commit is contained in:
parent
edef03efb1
commit
cfb4975fdf
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue