display retweeted status in full

This commit is contained in:
gutmet 2020-09-20 09:32:23 +02:00
parent 1169713d28
commit cf9cd541b4

View File

@ -511,12 +511,15 @@ type Status struct {
Id_str string Id_str string
User StatusUser User StatusUser
Quoted_status *Status Quoted_status *Status
Retweeted_status *Status
} }
func (m Status) String() string { func (m Status) String() string {
s := m.User.Name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text s := m.User.Name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
if m.Quoted_status != nil { if m.Quoted_status != nil {
s += "\nQuotes " + m.Quoted_status.String() s += "\n\nQuotes " + m.Quoted_status.String()
} else if m.Retweeted_status != nil {
s += "\n\nRetweets " + m.Retweeted_status.String()
} }
return s return s
} }