mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 13:37:29 -06:00
Bashing away at federation
This commit is contained in:
parent
1c3ad47f52
commit
8b1d96ec52
27 changed files with 472 additions and 185 deletions
|
|
@ -60,6 +60,10 @@ var (
|
|||
// userPathRegex parses a path that validates and captures the username part from eg /users/example_username
|
||||
userPathRegex = regexp.MustCompile(userPathRegexString)
|
||||
|
||||
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 = regexp.MustCompile(inboxPathRegexString)
|
||||
|
||||
actorPathRegexString = fmt.Sprintf(`^?/%s/(%s)$`, ActorsPath, usernameRegexString)
|
||||
// actorPathRegex parses a path that validates and captures the username part from eg /actors/example_username
|
||||
actorPathRegex = regexp.MustCompile(actorPathRegexString)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue