mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Use u.Hostname() instead of u.Host
u.Host returns hostname:port.
This commit is contained in:
		
					parent
					
						
							
								27c9db1027
							
						
					
				
			
			
				commit
				
					
						65f7124c67
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -121,7 +121,7 @@ func ParseActorIDFromStarActivity(star *forgefed.Star) (ActorID, error) {
 | 
			
		|||
		userId: userId,
 | 
			
		||||
		source: star.Source,
 | 
			
		||||
		schema: u.Scheme,
 | 
			
		||||
		host:   u.Host,
 | 
			
		||||
		host:   u.Hostname(), // u.Host returns hostname:port
 | 
			
		||||
		path:   u.Path,
 | 
			
		||||
		port:   u.Port(),
 | 
			
		||||
	}, nil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue