From b993ff0469ec6f4352d72e7d717965d4889b9955 Mon Sep 17 00:00:00 2001 From: GnoxNahte Date: Thu, 26 Sep 2024 23:22:20 +0800 Subject: [PATCH] Fix bug for title not showing if the website doesn't have a title (When using Auto link title) Uses the default fallback title instead. --- src/embeds/defaultFallbackEmbed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/embeds/defaultFallbackEmbed.ts b/src/embeds/defaultFallbackEmbed.ts index 165028a..3869d31 100644 --- a/src/embeds/defaultFallbackEmbed.ts +++ b/src/embeds/defaultFallbackEmbed.ts @@ -72,7 +72,7 @@ export class DefaultFallbackEmbed extends EmbedBase { console.log(response); if (!response.headers["content-type"].includes("text/html")) - return ""; + return this.plugin.settings.fallbackDefaultLink; const html = response.text; const doc = new DOMParser().parseFromString(html, 'text/html');