mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-07 03:33:16 -06:00
[chore] Try to parse public key as both Actor + bare key (#2710)
* [chore] Try to parse public key as both Actor + bare key * fix weird test fail
This commit is contained in:
parent
adf345f1ec
commit
4bbdef02f1
5 changed files with 217 additions and 75 deletions
|
|
@ -211,7 +211,7 @@ func (c *Converter) ASRepresentationToAccount(ctx context.Context, accountable a
|
|||
}
|
||||
|
||||
// Extract account public key and verify ownership to account.
|
||||
pkey, pkeyURL, pkeyOwnerID, err := ap.ExtractPublicKey(accountable)
|
||||
pkey, pkeyURL, pkeyOwnerID, err := ap.ExtractPubKeyFromActor(accountable)
|
||||
if err != nil {
|
||||
err := gtserror.Newf("error extracting public key for %s: %w", uri, err)
|
||||
return nil, gtserror.SetMalformed(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue