Added message parsing check

This commit is contained in:
Farhan Khan 2022-02-01 20:21:51 +00:00
parent 6eaba2a3d5
commit df6cfe9899

View File

@ -87,6 +87,9 @@ func StreamMastodon(endpoint string, o *shared.RunningInstance) {
case "data":
switch name {
case "update":
if len(token) >= 2 && len(token[1]) >= 2 {
continue
}
jsondata := token[1][1:]
err := json.Unmarshal([]byte(jsondata), &newactivity)
if err != nil {