✌️
This commit is contained in:
		
							parent
							
								
									cf5b679117
								
							
						
					
					
						commit
						1186b788d6
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -48,11 +48,6 @@ export default class Resolver {
 | 
			
		|||
 | 
			
		||||
		this.history.add(value);
 | 
			
		||||
 | 
			
		||||
		//#region resolve local objects
 | 
			
		||||
		// TODO
 | 
			
		||||
		//if (value.startsWith(`${config.url}/`)) {
 | 
			
		||||
		//#endregion
 | 
			
		||||
 | 
			
		||||
		const object = await request({
 | 
			
		||||
			url: value,
 | 
			
		||||
			headers: {
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +61,10 @@ export default class Resolver {
 | 
			
		|||
				!object['@context'].includes('https://www.w3.org/ns/activitystreams') :
 | 
			
		||||
				object['@context'] !== 'https://www.w3.org/ns/activitystreams'
 | 
			
		||||
		)) {
 | 
			
		||||
			log(`invalid response: ${JSON.stringify(object, null, 2)}`);
 | 
			
		||||
			log(`invalid response: ${value}`);
 | 
			
		||||
			throw new Error('invalid response');
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		log(`resolved: ${JSON.stringify(object, null, 2)}`);
 | 
			
		||||
 | 
			
		||||
		return object;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue