attachment summary field needs to be de-html on import

This commit is contained in:
Ted Unangst 2021-04-05 14:09:11 -04:00
parent a22384b74d
commit 532185a560
1 changed files with 2 additions and 0 deletions

View File

@ -752,6 +752,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
} }
name, _ := att.GetString("name") name, _ := att.GetString("name")
desc, _ := att.GetString("summary") desc, _ := att.GetString("summary")
desc = html.UnescapeString(desc)
if desc == "" { if desc == "" {
desc = name desc = name
} }
@ -798,6 +799,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
tt, _ := tag.GetString("type") tt, _ := tag.GetString("type")
name, _ := tag.GetString("name") name, _ := tag.GetString("name")
desc, _ := tag.GetString("summary") desc, _ := tag.GetString("summary")
desc = html.UnescapeString(desc)
if desc == "" { if desc == "" {
desc = name desc = name
} }