todo
parent
adca356db1
commit
293a9e0aba
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue