From 169bcf6a0efd728ed7dc8af1b8910b4269fbca62 Mon Sep 17 00:00:00 2001 From: Avril Date: Fri, 24 Apr 2020 22:22:40 +0100 Subject: [PATCH] never wanna touch this again --- ndview/PageGenerator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ndview/PageGenerator.cs b/ndview/PageGenerator.cs index 811567e..3dfac41 100644 --- a/ndview/PageGenerator.cs +++ b/ndview/PageGenerator.cs @@ -123,7 +123,7 @@ namespace ndview await using (await index.TagAsync("article", token, ("id", post.PostNumber.ToString()))) { await WriteHeader(index, post, token); - if (post.ImageURL != null) + if (!post.IsImageEncrypted && post.ImageURL != null) await WriteImageFigure(index, post, token); await WriteBody(index, post, token); @@ -256,7 +256,7 @@ namespace ndview var imgExtract = !thread.IsImageEncrypted && thread.ImageURL != null ? ExtractImage(thread, img, threadImgEnc || wasEnc, token) : Task.CompletedTask; - if (thread.ImageURL == null) + if (!thread.IsImageEncrypted && thread.ImageURL == null) { var ocol = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Yellow; @@ -269,7 +269,7 @@ namespace ndview await index.AppendHtml($@""); await WriteHeader(index, thread, token); - if (thread.ImageURL != null) + if (!thread.IsImageEncrypted && thread.ImageURL != null) await WriteImageFigure(index, thread, token); await WriteBody(index, thread, token);