display pure retweets differently

This commit is contained in:
gutmet 2020-09-20 21:54:38 +02:00
parent 45369c46e7
commit 86185bab30

View File

@ -525,6 +525,9 @@ type Media struct {
}
func (m Status) String() string {
if m.Retweeted_status != nil {
return m.User.Screen_name + " retweeted " + m.Retweeted_status.String()
}
s := m.User.Screen_name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
allMedia := m.Extended_entities.Media
if len(allMedia) > 0 {
@ -535,8 +538,6 @@ func (m Status) String() string {
}
if m.Quoted_status != nil {
s += "\n\nQuotes " + m.Quoted_status.String()
} else if m.Retweeted_status != nil {
s += "\n\nRetweets " + m.Retweeted_status.String()
}
return s
}