feat: speed up builds; minimize things a bit
This commit is contained in:
parent
67017151d1
commit
f057962309
13 changed files with 17 additions and 164 deletions
|
@ -91,20 +91,7 @@ export default {
|
|||
},
|
||||
|
||||
// links
|
||||
findPost: (url, posts) => {
|
||||
if (!url || !posts || !posts[url]?.toots?.[0]?.includes('https')) return null;
|
||||
const BASE_URL = 'https://social.lol/users/cory/statuses/'
|
||||
const STATUS_URL = 'https://social.lol/@cory/'
|
||||
return posts[url]?.toots?.[0]?.replace(BASE_URL, STATUS_URL) || null;
|
||||
},
|
||||
absoluteUrl: (url) => {
|
||||
try {
|
||||
return (new URL(url, BASE_URL)).toString()
|
||||
} catch(e) {
|
||||
console.error('Error generating absoluteUrl.')
|
||||
}
|
||||
return url;
|
||||
},
|
||||
absoluteUrl: (url) => (new URL(url, BASE_URL)).toString(),
|
||||
|
||||
// feeds
|
||||
normalizeEntries: (entries) => {
|
||||
|
|
Reference in a new issue