mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	fix: update proceedOnActivityPub middleware to handle how Mastodon doesn't send the 'Accepts' header
This commit is contained in:
		@@ -101,7 +101,7 @@ Controller.getInbox = async (req, res) => {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
Controller.postInbox = async (req, res) => {
 | 
			
		||||
	// Note: internal-only, hence no exposure via src/api
 | 
			
		||||
	// Note: underlying methods are internal use only, hence no exposure via src/api
 | 
			
		||||
	switch (req.body.type) {
 | 
			
		||||
		case 'Follow': {
 | 
			
		||||
			await activitypub.inbox.follow(req.body.actor.name, req.body.object.name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user