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

@ -507,16 +507,19 @@ func quote(args []string) error {
}
type Status struct {
Full_text string
Id_str string
User StatusUser
Quoted_status *Status
Full_text string
Id_str string
User StatusUser
Quoted_status *Status
Retweeted_status *Status
}
func (m Status) String() string {
s := m.User.Name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
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
}