mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: better logic for choosing webfinger lookups
This commit is contained in:
		| @@ -22,15 +22,10 @@ Helpers.isUri = (value) => { | ||||
| 		value = String(value); | ||||
| 	} | ||||
|  | ||||
| 	const protocols = ['https']; | ||||
| 	if (process.env.CI === 'true') { | ||||
| 		protocols.push('http'); | ||||
| 	} | ||||
|  | ||||
| 	return validator.isURL(value, { | ||||
| 		require_protocol: true, | ||||
| 		require_host: true, | ||||
| 		protocols, | ||||
| 		protocols: activitypub._constants.acceptedProtocols, | ||||
| 		require_valid_protocol: true, | ||||
| 		require_tld: false, // temporary — for localhost | ||||
| 	}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user