mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: #10010, handle reverse sorting for topic events
dont add events to dom if sort is most votes if sorting is reverse add new events after the main post or at the top instead of bottom
This commit is contained in:
		| @@ -209,7 +209,7 @@ Topics.getEvents = async (req, res) => { | ||||
| 		return helpers.formatApiResponse(403, res); | ||||
| 	} | ||||
|  | ||||
| 	helpers.formatApiResponse(200, res, await topics.events.get(req.params.tid)); | ||||
| 	helpers.formatApiResponse(200, res, await topics.events.get(req.params.tid, req.uid)); | ||||
| }; | ||||
|  | ||||
| Topics.deleteEvent = async (req, res) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user