Streams: Fix string IDs for deletion events with Mastodon v2 API
authorMikael Berthe <mikael@lilotux.net>
Sat, 28 Oct 2017 22:46:01 +0200
changeset 174 0b30e670aa82
parent 173 1812a794b759
child 175 adcead24cdf1
Streams: Fix string IDs for deletion events with Mastodon v2 API (Needs madon library update) This should fix https://github.com/McKael/madonctl/issues/10 Thanks to @wxl for the report.
cmd/stream.go
--- a/cmd/stream.go	Sat Oct 21 19:17:07 2017 +0200
+++ b/cmd/stream.go	Sat Oct 28 22:46:01 2017 +0200
@@ -213,7 +213,7 @@
 					continue
 				}
 				// TODO PrintObj ?
-				errPrint("Event: [%s] Status %d was deleted", ev.Event, ev.Data.(int64))
+				errPrint("Event: [%s] Status %s was deleted", ev.Event, ev.Data.(string))
 			default:
 				errPrint("Unhandled event: [%s] %T", ev.Event, ev.Data)
 			}