Browse Source

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

pull/2323/head
John Regan 3 years ago committed by GitHub
parent
commit
9978882b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      activitypub/inbox/undo.go

7
activitypub/inbox/undo.go

@ -18,7 +18,12 @@ func handleUndoInboxRequest(c context.Context, activity vocab.ActivityStreamsUnd @@ -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
}
}

Loading…
Cancel
Save