translate escaped characters in tweet back
This commit is contained in:
parent
0afa5f9933
commit
2c11d2102c
|
@ -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:"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user