diaply acct instead of username

close #29
This commit is contained in:
Yasuhiro Matsumoto 2017-04-19 20:52:14 +09:00
parent 5a3a325689
commit 1ddd67b1a4
4 changed files with 33 additions and 6 deletions

View file

@ -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),
})