From dac4b267cab31fb3a4ce301f1bcdf364fcb541a1 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 5 Jun 2022 21:36:17 -0700 Subject: fix finger actor --- db/database.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'db/database.go') diff --git a/db/database.go b/db/database.go index 2c42cf5..830edc5 100644 --- a/db/database.go +++ b/db/database.go @@ -85,7 +85,7 @@ func CreateNewBoard(actor activitypub.Actor) (activitypub.Actor, error) { } } - { + if actor.Id == config.Domain { var verify util.Verify verify.Type = "admin" verify.Identifier = actor.Id @@ -95,16 +95,6 @@ func CreateNewBoard(actor activitypub.Actor) (activitypub.Actor, error) { } } - { - var verify util.Verify - verify.Type = "janitor" - verify.Identifier = actor.Id - - if err := actor.CreateVerification(verify); err != nil { - return activitypub.Actor{}, util.MakeError(err, "CreateNewBoardDB") - } - } - activitypub.CreatePem(actor) if actor.Name != "main" { -- cgit v1.2.3