Fix can't process follow accept/reject from remote
This commit is contained in:
		
							parent
							
								
									b412b4a9ff
								
							
						
					
					
						commit
						a796a68e8a
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@ import accept from '../../../../services/following/requests/accept';
 | 
			
		|||
import { IFollow } from '../../type';
 | 
			
		||||
 | 
			
		||||
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
 | 
			
		||||
	const id = typeof activity.object == 'string' ? activity.object : activity.object.id;
 | 
			
		||||
	const id = typeof activity.actor == 'string' ? activity.actor : activity.actor.id;
 | 
			
		||||
 | 
			
		||||
	if (!id.startsWith(config.url + '/')) {
 | 
			
		||||
		return null;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ import reject from '../../../../services/following/requests/reject';
 | 
			
		|||
import { IFollow } from '../../type';
 | 
			
		||||
 | 
			
		||||
export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => {
 | 
			
		||||
	const id = typeof activity.object == 'string' ? activity.object : activity.object.id;
 | 
			
		||||
	const id = typeof activity.actor == 'string' ? activity.actor : activity.actor.id;
 | 
			
		||||
 | 
			
		||||
	if (!id.startsWith(config.url + '/')) {
 | 
			
		||||
		return null;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue