From 6dc1c48518a4f458412347ca5c73eb7846229a0d Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 28 Jan 2021 15:07:33 -0800 Subject: need to verify remote post auth to save to cache --- Database.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Database.go') diff --git a/Database.go b/Database.go index ac9ee27..80f62fe 100644 --- a/Database.go +++ b/Database.go @@ -78,6 +78,12 @@ func CreateNewBoardDB(db *sql.DB, actor Actor) Actor{ CreateVerification(db, verify) + verify.Identifier = actor.Id + verify.Code = CreateKey(50) + verify.Type = "post" + + CreateVerification(db, verify) + var nverify Verify nverify.Board = actor.Id nverify.Identifier = "admin" @@ -87,7 +93,12 @@ func CreateNewBoardDB(db *sql.DB, actor Actor) Actor{ nverify.Board = actor.Id nverify.Identifier = "janitor" nverify.Type = "janitor" - CreateBoardMod(db, nverify) + CreateBoardMod(db, nverify) + + nverify.Board = actor.Id + nverify.Identifier = "post" + nverify.Type = "post" + CreateBoardMod(db, nverify) if actor.Name != "main" { var nActor Actor @@ -106,7 +117,7 @@ func CreateNewBoardDB(db *sql.DB, actor Actor) Actor{ response := AcceptFollow(nActivity) SetActorFollowingDB(db, response) - MakeActivityRequest(nActivity) + MakeActivityRequest(db, nActivity) } } -- cgit v1.2.3