display retweeted status in full
This commit is contained in:
parent
1169713d28
commit
cf9cd541b4
|
@ -511,12 +511,15 @@ type Status struct {
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user