mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 18:02:26 -06:00 
			
		
		
		
	tidy up some federation stuff
This commit is contained in:
		
					parent
					
						
							
								621e59fd42
							
						
					
				
			
			
				commit
				
					
						211c43073f
					
				
			
		
					 11 changed files with 199 additions and 86 deletions
				
			
		| 
						 | 
				
			
			@ -64,6 +64,10 @@ var (
 | 
			
		|||
	// inboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/inbox
 | 
			
		||||
	inboxPathRegex = regexp.MustCompile(inboxPathRegexString)
 | 
			
		||||
 | 
			
		||||
	outboxPathRegexString = fmt.Sprintf(`^/?%s/(%s)/%s$`, UsersPath, usernameRegexString, OutboxPath)
 | 
			
		||||
	// outboxPathRegex parses a path that validates and captures the username part from eg /users/example_username/outbox
 | 
			
		||||
	outboxPathRegex = regexp.MustCompile(outboxPathRegexString)
 | 
			
		||||
 | 
			
		||||
	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