summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/api/s2s/nodeinfo/nodeinfo.go2
-rw-r--r--internal/federation/handshake.go2
-rw-r--r--internal/util/regexes.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/s2s/nodeinfo/nodeinfo.go b/internal/api/s2s/nodeinfo/nodeinfo.go
index 5febaf41f..85617f52c 100644
--- a/internal/api/s2s/nodeinfo/nodeinfo.go
+++ b/internal/api/s2s/nodeinfo/nodeinfo.go
@@ -32,7 +32,7 @@ const (
// NodeInfoWellKnownPath is the base path for serving responses to nodeinfo lookup requests.
NodeInfoWellKnownPath = ".well-known/nodeinfo"
// NodeInfoBasePath is the path for serving nodeinfo responses.
- NodeInfoBasePath = "/nodeinfo/2.0"
+ NodeInfoBasePath = "/nodeinfo/2.0"
)
// Module implements the FederationModule interface
diff --git a/internal/federation/handshake.go b/internal/federation/handshake.go
index af720403a..511e3e174 100644
--- a/internal/federation/handshake.go
+++ b/internal/federation/handshake.go
@@ -11,7 +11,7 @@ func (f *federator) Handshaking(username string, remoteAccountID *url.URL) bool
return false
}
- remoteIDs, ok := f.handshakes[username];
+ remoteIDs, ok := f.handshakes[username]
if !ok {
// user isn't handshaking with anyone, bail
return false
diff --git a/internal/util/regexes.go b/internal/util/regexes.go
index 13c3ce3ef..25d90417c 100644
--- a/internal/util/regexes.go
+++ b/internal/util/regexes.go
@@ -61,7 +61,7 @@ var (
userPathRegex = regexp.MustCompile(userPathRegexString)
userPublicKeyPathRegexString = fmt.Sprintf(`^?/%s/(%s)/%s`, UsersPath, usernameRegexString, PublicKeyPath)
- userPublicKeyPathRegex = regexp.MustCompile(userPublicKeyPathRegexString)
+ userPublicKeyPathRegex = regexp.MustCompile(userPublicKeyPathRegexString)
inboxPathRegexString = fmt.Sprintf(`^/?%s/(%s)/%s$`, UsersPath, usernameRegexString, InboxPath)
// inboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/inbox