Use id instead of username
Because username is mutable. id is immutable!
This commit is contained in:
		
							parent
							
								
									228d3141a7
								
							
						
					
					
						commit
						4c0b48af5e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -306,7 +306,7 @@ export const packForAp = (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!_user) return reject('invalid user arg.');
 | 
						if (!_user) return reject('invalid user arg.');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const userUrl = `${config.url}/@${_user.username}`;
 | 
						const userUrl = `${config.url}/@@${_user._id}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	resolve({
 | 
						resolve({
 | 
				
			||||||
		"@context": ["https://www.w3.org/ns/activitystreams", {
 | 
							"@context": ["https://www.w3.org/ns/activitystreams", {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue