display quoted tweets
This commit is contained in:
parent
7325975469
commit
1169713d28
13
drivel.go
13
drivel.go
|
@ -507,13 +507,18 @@ func quote(args []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Status struct {
|
type Status struct {
|
||||||
Full_text string
|
Full_text string
|
||||||
Id_str string
|
Id_str string
|
||||||
User StatusUser
|
User StatusUser
|
||||||
|
Quoted_status *Status
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m Status) String() string {
|
func (m Status) String() string {
|
||||||
return m.User.Name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
|
s := m.User.Name + " " + "(" + m.Id_str + ")" + ":\n" + m.Full_text
|
||||||
|
if m.Quoted_status != nil {
|
||||||
|
s += "\nQuotes " + m.Quoted_status.String()
|
||||||
|
}
|
||||||
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m Status) URL() string {
|
func (m Status) URL() string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user