|  | @@ -67,6 +67,7 @@ namespace Masuit.MyBlogs.Core.Controllers
 | 
	
		
			
				|  |  |              var post = await PostService.GetAsync(p => p.Id == id && (p.Status == Status.Published || CurrentUser.IsAdmin)) ?? throw new NotFoundException("文章未找到");
 | 
	
		
			
				|  |  |              CheckPermission(post);
 | 
	
		
			
				|  |  |              ViewBag.Keyword = post.Keyword + "," + post.Label;
 | 
	
		
			
				|  |  | +            ViewBag.Desc = post.Content.GetSummary(200);
 | 
	
		
			
				|  |  |              var modifyDate = post.ModifyDate;
 | 
	
		
			
				|  |  |              ViewBag.Next = PostService.GetFromCache<DateTime, PostModelBase>(p => p.ModifyDate > modifyDate && (p.Status == Status.Published || CurrentUser.IsAdmin), p => p.ModifyDate);
 | 
	
		
			
				|  |  |              ViewBag.Prev = PostService.GetFromCache<DateTime, PostModelBase>(p => p.ModifyDate < modifyDate && (p.Status == Status.Published || CurrentUser.IsAdmin), p => p.ModifyDate, false);
 | 
	
	
		
			
				|  | @@ -129,7 +130,7 @@ namespace Masuit.MyBlogs.Core.Controllers
 | 
	
		
			
				|  |  |          /// <param name="page"></param>
 | 
	
		
			
				|  |  |          /// <param name="size"></param>
 | 
	
		
			
				|  |  |          /// <returns></returns>
 | 
	
		
			
				|  |  | -        [Route("{id:int}/history"), Route("{id:int}/history/{page:int}/{size:int}"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "id", "page", "size" }, VaryByHeader = "Cookie")]
 | 
	
		
			
				|  |  | +        [Route("{id:int}/history"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "id", "page", "size" }, VaryByHeader = "Cookie")]
 | 
	
		
			
				|  |  |          public async Task<ActionResult> History(int id, [Range(1, int.MaxValue, ErrorMessage = "页码必须大于0")] int page = 1, [Range(1, 50, ErrorMessage = "页大小必须在0到50之间")] int size = 20)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              var post = await PostService.GetAsync(p => p.Id == id && (p.Status == Status.Published || CurrentUser.IsAdmin)) ?? throw new NotFoundException("文章未找到");
 |