fix: filter

This commit is contained in:
Cory Dransfeldt 2024-07-04 13:52:46 -07:00
parent 5a7beeae3f
commit 8ea14491b9
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -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