From 86185bab30ed6ad38aa63c579218c1b407750974 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 20 Sep 2020 21:54:38 +0200 Subject: [PATCH] display pure retweets differently --- drivel.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivel.go b/drivel.go index afe85ce..dcbdf35 100644 --- a/drivel.go +++ b/drivel.go @@ -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 }