parent
5a3a325689
commit
1ddd67b1a4
4 changed files with 33 additions and 6 deletions
|
@ -17,6 +17,7 @@ import (
|
|||
type SimpleJSON struct {
|
||||
ID int64 `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Acct string `json:"acct"`
|
||||
Avatar string `json:"avatar"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
@ -61,6 +62,7 @@ func cmdStream(c *cli.Context) error {
|
|||
json.NewEncoder(c.App.Writer).Encode(&SimpleJSON{
|
||||
ID: t.Status.ID,
|
||||
Username: t.Status.Account.Username,
|
||||
Acct: t.Status.Account.Acct,
|
||||
Avatar: t.Status.Account.AvatarStatic,
|
||||
Content: textContent(t.Status.Content),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue