ActivityPub fix 2

This commit is contained in:
Jan-Lukas Else 2022-12-14 23:29:19 +01:00
parent c029733a4f
commit 224f889c27
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ func (a *goBlog) apVerifySignature(r *http.Request, blog string) (*ap.Actor, err
actor, err := a.apGetRemoteActor(ap.IRI(verifier.KeyId()), blog)
if err != nil || actor == nil {
// Actor not found or something else bad
return nil, errors.New("failed to get actor: " + err.Error())
return nil, errors.New("failed to get actor")
}
if actor.PublicKey.PublicKeyPem == "" {
return nil, errors.New("actor has no public key")