From 532185a5600cec214bb4f22bdd46efff94d48f34 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 5 Apr 2021 14:09:11 -0400 Subject: [PATCH] attachment summary field needs to be de-html on import --- activity.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activity.go b/activity.go index 29304c5..2cf347f 100644 --- a/activity.go +++ b/activity.go @@ -752,6 +752,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { } name, _ := att.GetString("name") desc, _ := att.GetString("summary") + desc = html.UnescapeString(desc) if desc == "" { desc = name } @@ -798,6 +799,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { tt, _ := tag.GetString("type") name, _ := tag.GetString("name") desc, _ := tag.GetString("summary") + desc = html.UnescapeString(desc) if desc == "" { desc = name }