diff options
author | Gabe Kangas <gabek@real-ity.com> | 2022-01-12 15:16:24 -0800 |
---|---|---|
committer | Gabe Kangas <gabek@real-ity.com> | 2022-01-12 15:16:24 -0800 |
commit | 24a57f907655bd693194eb00534e4723af38245e (patch) | |
tree | 345ebde3368ffeadab6b19f8ef8e2e34e32963a1 | |
parent | 36f8a54c9140b52eca208fb6a4b716f6f97cc25a (diff) |
Small cleanup
-rw-r--r-- | activitypub/activitypub.go | 2 | ||||
-rw-r--r-- | activitypub/controllers/followers.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activitypub/activitypub.go b/activitypub/activitypub.go index 0d80a5afe..ac41e2a90 100644 --- a/activitypub/activitypub.go +++ b/activitypub/activitypub.go @@ -19,7 +19,7 @@ func Start(datastore *data.Datastore) { inbox.InitInboxWorkerPool() StartRouter() - // Test + // Generate the keys for signing federated activity if needed. if data.GetPrivateKey() == "" { privateKey, publicKey, err := crypto.GenerateKeys() _ = data.SetPrivateKey(string(privateKey)) diff --git a/activitypub/controllers/followers.go b/activitypub/controllers/followers.go index 22e60c6dc..11193f51a 100644 --- a/activitypub/controllers/followers.go +++ b/activitypub/controllers/followers.go @@ -25,7 +25,7 @@ const ( // FollowersHandler will return the list of remote followers on the Fediverse. func FollowersHandler(w http.ResponseWriter, r *http.Request) { - if r.Method != "GET" { + if r.Method != http.MethodGet { w.WriteHeader(http.StatusMethodNotAllowed) return } |