From 12e73034cd0160ef90429dad4e827c1deb970cdb Mon Sep 17 00:00:00 2001 From: mbays Date: Fri, 2 Aug 2024 00:00:00 +0000 Subject: [PATCH] check for nil purl in normaliseIdentUrl --- identities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identities.lua b/identities.lua index 586b084..85326a4 100644 --- a/identities.lua +++ b/identities.lua @@ -24,7 +24,7 @@ local Identities = { local function normaliseIdentUrl(u) local purl = url.parse(u, {scheme = "gemini", port = "1965"}) - if purl.scheme == "titan" then + if purl and purl.scheme == "titan" then purl.scheme = "gemini" end if purl == nil or purl.scheme ~= "gemini" then -- 2.11.4.GIT