mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: use a slightly better error code to indicate object resolution failure
This commit is contained in:
		| @@ -84,7 +84,7 @@ middleware.resolveObjects = async function (req, res, next) { | ||||
| 			winston.verbose('[middleware/activitypub] Object(s) successfully resolved.'); | ||||
| 		} catch (e) { | ||||
| 			winston.verbose('[middleware/activitypub] Failed to resolve object(s).'); | ||||
| 			return res.sendStatus(400); | ||||
| 			return res.sendStatus(424); | ||||
| 		} | ||||
| 	} | ||||
| 	next(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user