From 8ea14491b9d64aa1ac1175a1abd084077fbf0b9a Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 4 Jul 2024 13:52:46 -0700 Subject: [PATCH] fix: filter --- config/filters/index.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/filters/index.js b/config/filters/index.js index 9d47a7ac..05dfe4bf 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -80,8 +80,8 @@ export default { // mastodon mastoUsername: (url) => { - const url = new URL(post.author.mastodon) - return `${url.pathname.replace('/', '')}@${url.host}` + const parsedUrl = new URL(url) + return `${parsedUrl.pathname.replace('/', '')}@${parsedUrl.host}` }, // feeds diff --git a/package-lock.json b/package-lock.json index a14f83d6..7f686727 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "19.9.18", + "version": "19.9.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "19.9.18", + "version": "19.9.19", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 04fdea5c..aacec2dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.9.18", + "version": "19.9.19", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": {