From 2c11d2102c629fa75bfb058a1b682552983880d7 Mon Sep 17 00:00:00 2001 From: gutmet Date: Tue, 22 Sep 2020 14:30:50 +0200 Subject: [PATCH] translate escaped characters in tweet back --- drivel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivel.go b/drivel.go index eed454b..eca3a3c 100644 --- a/drivel.go +++ b/drivel.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "git.gutmet.org/goutil.git" + "html" "io/ioutil" "net/http" "net/url" @@ -542,7 +543,7 @@ func (m Status) String() string { if replyTo := m.InReplyTo(); replyTo != "" { s += " in reply to " + replyTo } - s += ":\n" + m.Full_text + s += ":\n" + html.UnescapeString(m.Full_text) allMedia := m.Extended_entities.Media if len(allMedia) > 0 { s += "\n\nMedia:"