fix: filter
This commit is contained in:
parent
5a7beeae3f
commit
8ea14491b9
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Reference in a new issue