Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

activitypub: ensure Undo request has valid type (#2317)

John Reganfc674eb59916
diff --git a/activitypub/inbox/undo.go b/activitypub/inbox/undo.go
index 3034951a80..fd18fc6bbe 100644
--- a/activitypub/inbox/undo.go
+++ b/activitypub/inbox/undo.go
@@ -18,7 +18,12 @@ func handleUndoInboxRequest(c context.Context, activity vocab.ActivityStreamsUnd
return err
}
} else {
- log.Traceln("Undo", iter.GetType().GetTypeName(), "ignored")
+ t := iter.GetType()
+ if t != nil {
+ log.Traceln("Undo", t.GetTypeName(), "ignored")
+ } else {
+ log.Traceln("Undo (no type) ignored")
+ }
return nil
}
}