From 34d8333d726db624fdb1fad21ab7a00527e7791e Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Thu, 14 Dec 2023 23:05:57 +0000 Subject: [PATCH] tumblr: render error template for broken links --- src/modules/processing/services/tumblr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/services/tumblr.js b/src/modules/processing/services/tumblr.js index f894e4e4..90eb45c2 100644 --- a/src/modules/processing/services/tumblr.js +++ b/src/modules/processing/services/tumblr.js @@ -4,7 +4,7 @@ import { genericUserAgent } from "../../config.js"; export default async function(obj) { const { subdomain } = psl.parse(obj.url.hostname); if (subdomain?.includes('.')) - return { error: 'ErrorBrokenLink' } + return { error: ['ErrorBrokenLink', 'tumblr'] } let html = await fetch(`https://${obj.user ?? subdomain}.tumblr.com/post/${obj.id}`, { headers: { "user-agent": genericUserAgent }