This commit is contained in:
Yasuhiro Matsumoto 2017-10-25 15:22:17 +09:00
parent e0cf1e0650
commit aef736e991
8 changed files with 58 additions and 57 deletions

View file

@ -3,6 +3,7 @@ package mastodon
import (
"context"
"encoding/json"
"fmt"
"net/url"
"path"
@ -127,7 +128,7 @@ func (c *WSClient) handleWS(ctx context.Context, rawurl string, q chan Event) er
q <- &NotificationEvent{Notification: &notification}
}
case "delete":
q <- &DeleteEvent{ID: int64(s.Payload.(float64))}
q <- &DeleteEvent{ID: ID(fmt.Sprint(int64(s.Payload.(float64))))}
}
if err != nil {
q <- &ErrorEvent{err}