From e64dd2d206360cf5843b9013d9181865ed51c3ff Mon Sep 17 00:00:00 2001 From: John Regan Date: Fri, 11 Nov 2022 14:13:55 -0500 Subject: [PATCH] activitypub: ensure Undo request has valid type (#2317) --- activitypub/inbox/undo.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/activitypub/inbox/undo.go b/activitypub/inbox/undo.go index 3034951a8..fd18fc6bb 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 } }