This commit is contained in:
Yasuhiro Matsumoto 2017-04-19 23:58:58 +09:00
parent adca356db1
commit 293a9e0aba
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func cmdStream(c *cli.Context) error {
case *mastodon.UpdateEvent:
s.displayStatus(c.App.Writer, t.Status)
case *mastodon.NotificationEvent:
s.displayStatus(c.App.Writer, t.Notification.Status)
// TODO s.displayStatus(c.App.Writer, t.Notification.Status)
case *mastodon.ErrorEvent:
s.displayError(c.App.Writer, t)
}

View File

@ -289,6 +289,9 @@ func (s *screen) displayError(w io.Writer, e error) {
}
func (s *screen) displayStatus(w io.Writer, t *mastodon.Status) {
if t == nil {
return
}
if t.Reblog != nil {
color.Set(color.FgHiRed)
fmt.Fprint(w, s.acct(t.Account.Acct))