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": {