chore: masto username filter
This commit is contained in:
parent
f24c985757
commit
5a7beeae3f
3 changed files with 9 additions and 3 deletions
|
@ -78,6 +78,12 @@ export default {
|
|||
// links
|
||||
absoluteUrl: (url) => (new URL(url, BASE_URL)).toString(),
|
||||
|
||||
// mastodon
|
||||
mastoUsername: (url) => {
|
||||
const url = new URL(post.author.mastodon)
|
||||
return `${url.pathname.replace('/', '')}@${url.host}`
|
||||
},
|
||||
|
||||
// feeds
|
||||
normalizeEntries: (entries) => {
|
||||
const posts = []
|
||||
|
|
Reference in a new issue