mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-12 01:05:27 +00:00
Go fmt
This commit is contained in:
parent
3e6aef00b2
commit
869a6c111c
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ const (
|
||||||
// NodeInfoWellKnownPath is the base path for serving responses to nodeinfo lookup requests.
|
// NodeInfoWellKnownPath is the base path for serving responses to nodeinfo lookup requests.
|
||||||
NodeInfoWellKnownPath = ".well-known/nodeinfo"
|
NodeInfoWellKnownPath = ".well-known/nodeinfo"
|
||||||
// NodeInfoBasePath is the path for serving nodeinfo responses.
|
// NodeInfoBasePath is the path for serving nodeinfo responses.
|
||||||
NodeInfoBasePath = "/nodeinfo/2.0"
|
NodeInfoBasePath = "/nodeinfo/2.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Module implements the FederationModule interface
|
// Module implements the FederationModule interface
|
||||||
|
|
|
@ -11,7 +11,7 @@ func (f *federator) Handshaking(username string, remoteAccountID *url.URL) bool
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
remoteIDs, ok := f.handshakes[username];
|
remoteIDs, ok := f.handshakes[username]
|
||||||
if !ok {
|
if !ok {
|
||||||
// user isn't handshaking with anyone, bail
|
// user isn't handshaking with anyone, bail
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -61,7 +61,7 @@ var (
|
||||||
userPathRegex = regexp.MustCompile(userPathRegexString)
|
userPathRegex = regexp.MustCompile(userPathRegexString)
|
||||||
|
|
||||||
userPublicKeyPathRegexString = fmt.Sprintf(`^?/%s/(%s)/%s`, UsersPath, usernameRegexString, PublicKeyPath)
|
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)
|
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
|
// inboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/inbox
|
||||||
|
|
Loading…
Reference in a new issue