translate escaped characters in tweet back

This commit is contained in:
gutmet 2020-09-22 14:30:50 +02:00
parent 0afa5f9933
commit 2c11d2102c

View File

@ -6,6 +6,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"git.gutmet.org/goutil.git" "git.gutmet.org/goutil.git"
"html"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
@ -542,7 +543,7 @@ func (m Status) String() string {
if replyTo := m.InReplyTo(); replyTo != "" { if replyTo := m.InReplyTo(); replyTo != "" {
s += " in reply to " + replyTo s += " in reply to " + replyTo
} }
s += ":\n" + m.Full_text s += ":\n" + html.UnescapeString(m.Full_text)
allMedia := m.Extended_entities.Media allMedia := m.Extended_entities.Media
if len(allMedia) > 0 { if len(allMedia) > 0 {
s += "\n\nMedia:" s += "\n\nMedia:"