never wanna touch this again

master
Avril 4 years ago
parent fb70eb041e
commit 169bcf6a0e
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -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($@"<a href='#{thread.PostNumber}' class='script expand'></a>");
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);

Loading…
Cancel
Save