From d88a094c5c70d1cb5dca00dd763e2c078a8cf1d9 Mon Sep 17 00:00:00 2001 From: Balrog Date: Thu, 11 Jul 2024 15:02:05 +0000 Subject: [PATCH] Fix wrong path for thumbnail deletion --- Hayden.WebServer/Data/HaydenDataProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hayden.WebServer/Data/HaydenDataProvider.cs b/Hayden.WebServer/Data/HaydenDataProvider.cs index 78a5bac..ac6d8e3 100644 --- a/Hayden.WebServer/Data/HaydenDataProvider.cs +++ b/Hayden.WebServer/Data/HaydenDataProvider.cs @@ -338,7 +338,7 @@ public async Task DeletePost(ushort boardId, ulong postId, bool banImages) var fullFilename = Common.CalculateFilename(config.Value.Data.FileLocation, board.ShortName, Common.MediaType.Image, file.Sha256Hash, file.Extension); var thumbFilename = Common.CalculateFilename(config.Value.Data.FileLocation, board.ShortName, Common.MediaType.Thumbnail, - file.Sha256Hash, file.Extension); + file.Sha256Hash, "jpg"); System.IO.File.Delete(fullFilename); System.IO.File.Delete(thumbFilename); @@ -383,4 +383,4 @@ public static (string imageUrl, string thumbnailUrl) GenerateUrls(DBFile file, s return (imageUrl, thumbUrl); } } -} \ No newline at end of file +}