Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Small cleanup

Gabe Kangas24162f34301a
diff --git a/activitypub/activitypub.go b/activitypub/activitypub.go
index 0d80a5afee..ac41e2a902 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 22e60c6dc3..11193f51a4 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
}