Small cleanup
This commit is contained in:
parent
36f8a54c91
commit
24a57f9076
@ -19,7 +19,7 @@ func Start(datastore *data.Datastore) {
|
|||||||
inbox.InitInboxWorkerPool()
|
inbox.InitInboxWorkerPool()
|
||||||
StartRouter()
|
StartRouter()
|
||||||
|
|
||||||
// Test
|
// Generate the keys for signing federated activity if needed.
|
||||||
if data.GetPrivateKey() == "" {
|
if data.GetPrivateKey() == "" {
|
||||||
privateKey, publicKey, err := crypto.GenerateKeys()
|
privateKey, publicKey, err := crypto.GenerateKeys()
|
||||||
_ = data.SetPrivateKey(string(privateKey))
|
_ = data.SetPrivateKey(string(privateKey))
|
||||||
|
@ -25,7 +25,7 @@ const (
|
|||||||
|
|
||||||
// FollowersHandler will return the list of remote followers on the Fediverse.
|
// FollowersHandler will return the list of remote followers on the Fediverse.
|
||||||
func FollowersHandler(w http.ResponseWriter, r *http.Request) {
|
func FollowersHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != "GET" {
|
if r.Method != http.MethodGet {
|
||||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user