display retweeted status in full
This commit is contained in:
parent
1169713d28
commit
cf9cd541b4
13
drivel.go
13
drivel.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user