display pure retweets differently
This commit is contained in:
parent
45369c46e7
commit
86185bab30
|
@ -525,6 +525,9 @@ type Media struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m Status) String() string {
|
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
|
s := m.User.Screen_name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
|
||||||
allMedia := m.Extended_entities.Media
|
allMedia := m.Extended_entities.Media
|
||||||
if len(allMedia) > 0 {
|
if len(allMedia) > 0 {
|
||||||
|
@ -535,8 +538,6 @@ func (m Status) String() string {
|
||||||
}
|
}
|
||||||
if m.Quoted_status != nil {
|
if m.Quoted_status != nil {
|
||||||
s += "\n\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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user