From 39012c6b17073f6933a5ead8beed64df555f7348 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Fri, 6 May 2022 22:45:27 -0700 Subject: converting functions to activitypub object functions --- activitypub/activity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub/activity.go') diff --git a/activitypub/activity.go b/activitypub/activity.go index 22c9f06..9cf5bf2 100644 --- a/activitypub/activity.go +++ b/activitypub/activity.go @@ -36,7 +36,7 @@ func AcceptActivity(header string) bool { return accept } -func ActivitySign(actor Actor, signature string) (string, error) { +func (actor Actor) ActivitySign(signature string) (string, error) { query := `select file from publicKeyPem where id=$1 ` rows, err := config.DB.Query(query, actor.PublicKey.Id) -- cgit v1.2.3