diff options
author | FChannel <=> | 2021-01-28 15:07:33 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 15:07:33 -0800 |
commit | 6dc1c48518a4f458412347ca5c73eb7846229a0d (patch) | |
tree | c4371ec0906a738792bb3574f36ad4622e6b2c9d /Database.go | |
parent | 3d480edaef645b91ee8d00733dccc59f7296df28 (diff) |
need to verify remote post auth to save to cache
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 15 |
1 files changed, 13 insertions, 2 deletions
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) } } |