mirror of https://github.com/jlelse/GoBlog
ActivityPub fix 2
This commit is contained in:
parent
c029733a4f
commit
224f889c27
|
@ -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)
|
actor, err := a.apGetRemoteActor(ap.IRI(verifier.KeyId()), blog)
|
||||||
if err != nil || actor == nil {
|
if err != nil || actor == nil {
|
||||||
// Actor not found or something else bad
|
// 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 == "" {
|
if actor.PublicKey.PublicKeyPem == "" {
|
||||||
return nil, errors.New("actor has no public key")
|
return nil, errors.New("actor has no public key")
|
||||||
|
|
Loading…
Reference in New Issue