summaryrefslogtreecommitdiff
path: root/internal/typeutils/astointernal.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-02 12:30:10 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-02 11:30:10 +0100
commit4bbdef02f16f82b12d3eaf74b7071833088481df (patch)
treef9d2f51911678cd29c3636ce7d3f69849b7377bc /internal/typeutils/astointernal.go
parent[chore] bump go structr cache version -> v0.6.0 (#2773) (diff)
downloadgotosocial-4bbdef02f16f82b12d3eaf74b7071833088481df.tar.xz
[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
Diffstat (limited to 'internal/typeutils/astointernal.go')
-rw-r--r--internal/typeutils/astointernal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go
index b5e713554..ba370790a 100644
--- a/internal/typeutils/astointernal.go
+++ b/internal/typeutils/astointernal.go
@@ -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)