|  | @@ -527,7 +527,7 @@ class UserWorkspaceFolderThreadRestController(TIMWorkspaceContentRestController)
 | 
	
		
			
			| 527 | 527 |  
 | 
	
		
			
			| 528 | 528 |      @tg.require(current_user_is_reader())
 | 
	
		
			
			| 529 | 529 |      @tg.expose('tracim.templates.thread.getone')
 | 
	
		
			
			| 530 |  | -    def get_one(self, thread_id):
 | 
	
		
			
			|  | 530 | +    def get_one(self, thread_id, inverted: str=''):
 | 
	
		
			
			| 531 | 531 |          thread_id = int(thread_id)
 | 
	
		
			
			| 532 | 532 |          user = tmpl_context.current_user
 | 
	
		
			
			| 533 | 533 |          workspace = tmpl_context.workspace
 | 
	
	
		
			
			|  | @@ -543,7 +543,11 @@ class UserWorkspaceFolderThreadRestController(TIMWorkspaceContentRestController)
 | 
	
		
			
			| 543 | 543 |          fake_api = Context(CTX.FOLDER).toDict(fake_api_content)
 | 
	
		
			
			| 544 | 544 |  
 | 
	
		
			
			| 545 | 545 |          dictified_thread = Context(CTX.THREAD).toDict(thread, 'thread')
 | 
	
		
			
			| 546 |  | -        return DictLikeClass(result = dictified_thread, fake_api=fake_api)
 | 
	
		
			
			|  | 546 | +
 | 
	
		
			
			|  | 547 | +        if inverted:
 | 
	
		
			
			|  | 548 | +          dictified_thread.thread.history = reversed(dictified_thread.thread.history)
 | 
	
		
			
			|  | 549 | +
 | 
	
		
			
			|  | 550 | +        return DictLikeClass(result=dictified_thread, fake_api=fake_api, inverted=inverted)
 | 
	
		
			
			| 547 | 551 |  
 | 
	
		
			
			| 548 | 552 |  
 | 
	
		
			
			| 549 | 553 |  
 | 
	
	
		
			
			|  | @@ -949,4 +953,4 @@ class UserWorkspaceFolderRestController(TIMRestControllerWithBreadcrumb):
 | 
	
		
			
			| 949 | 953 |              back_url = self._parent_url.format(item.workspace_id, item.parent_id)
 | 
	
		
			
			| 950 | 954 |              msg = _('{} not un-deleted: {}').format(self._item_type_label, str(e))
 | 
	
		
			
			| 951 | 955 |              tg.flash(msg, CST.STATUS_ERROR)
 | 
	
		
			
			| 952 |  | -            tg.redirect(back_url)
 | 
	
		
			
			|  | 956 | +            tg.redirect(back_url)
 |