From 429ab6de683653c0ae509ba169eab768f2e3bd91 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 28 Jun 2021 17:34:33 -0700 Subject: removed creating client key file --- client.go | 13 ------------- main.go | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/client.go b/client.go index b7f1938..1c2b8ce 100644 --- a/client.go +++ b/client.go @@ -469,19 +469,6 @@ func GetActorsFollowPostFromId(db *sql.DB, actors []string, id string) Collectio return collection } -func CreateClientKey() string{ - - file, err := os.Create("clientkey") - - CheckError(err, "could not create client key in file") - - defer file.Close() - - key := CreateKey(32) - file.WriteString(key) - return key -} - type ObjectBaseSortDesc []ObjectBase func (a ObjectBaseSortDesc) Len() int { return len(a) } func (a ObjectBaseSortDesc) Less(i, j int) bool { return a[i].Updated > a[j].Updated } diff --git a/main.go b/main.go index 98c1057..69bf337 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func main() { go MakeCaptchas(db, 100) - *Key = CreateClientKey() + *Key = CreateKey(32) FollowingBoards = GetActorFollowingDB(db, Domain) -- cgit v1.2.3