fix: bad reference

This commit is contained in:
Cory Dransfeldt 2024-02-22 13:12:09 -08:00
parent a8ef3fcdd4
commit 06b4b7f247
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ export default {
if (!url || !posts) 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;
return posts[url]?.toots?.[0]?.replace(BASE_URL, STATUS_URL) || null;
},
absoluteUrl: (url, base) => {
if (!base) base = metaData.url