mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: remote follows, yet again
This commit is contained in:
		| @@ -94,10 +94,9 @@ Helpers.resolveLocalUid = async (input) => { | ||||
| 		const { host, pathname } = new URL(input); | ||||
|  | ||||
| 		if (host === nconf.get('url_parsed').host) { | ||||
| 			slug = pathname.replace(nconf.get('relative_path'), '').split('/').filter(Boolean)[1]; | ||||
| 		} else { | ||||
| 			throw new Error('[[error:activitypub.invalid-id]]'); | ||||
| 			return pathname.replace(nconf.get('relative_path'), '').split('/').filter(Boolean)[1]; | ||||
| 		} | ||||
| 		throw new Error('[[error:activitypub.invalid-id]]'); | ||||
| 	} else if (input.indexOf('@') !== -1) { // Webfinger | ||||
| 		([slug] = input.replace(/^acct:/, '').split('@')); | ||||
| 	} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user