From c30d6beea23c3bf7d626ce72ad683427729e0660 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 May 2024 12:45:05 -0500 Subject: [PATCH] Upgrade nostrify to v0.22.4, zod to v3.23.8 --- deno.json | 4 ++-- src/views/mastodon/accounts.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 9808c30..2bbc288 100644 --- a/deno.json +++ b/deno.json @@ -23,7 +23,7 @@ "@isaacs/ttlcache": "npm:@isaacs/ttlcache@^1.4.1", "@lambdalisue/async": "jsr:@lambdalisue/async@^2.1.1", "@noble/secp256k1": "npm:@noble/secp256k1@^2.0.0", - "@nostrify/nostrify": "jsr:@nostrify/nostrify@^0.22.2", + "@nostrify/nostrify": "jsr:@nostrify/nostrify@^0.22.4", "@sentry/deno": "https://deno.land/x/sentry@7.112.2/index.mjs", "@soapbox/kysely-deno-sqlite": "jsr:@soapbox/kysely-deno-sqlite@^2.1.0", "@soapbox/stickynotes": "jsr:@soapbox/stickynotes@^0.4.0", @@ -57,7 +57,7 @@ "tseep": "npm:tseep@^1.2.1", "type-fest": "npm:type-fest@^4.3.0", "unfurl.js": "npm:unfurl.js@^6.4.0", - "zod": "npm:zod@^3.23.5", + "zod": "npm:zod@^3.23.8", "~/fixtures/": "./fixtures/" }, "lint": { diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index fbb6206..347a9bc 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -86,7 +86,7 @@ async function renderAccount( pubkey, lud16, }, - website: /^https?:\/\//.test(website) ? website : undefined, + website: website && /^https?:\/\//.test(website) ? website : undefined, }; }