feat: link authors + post links

This commit is contained in:
Cory Dransfeldt 2024-01-11 15:00:43 -08:00
parent 86add0806e
commit 9e7cc103cb
No known key found for this signature in database
6 changed files with 48 additions and 9 deletions

View file

@ -145,6 +145,12 @@ export default {
return DateTime.now().diff(DateTime.fromJSDate(new Date(date)), 'years').years > 3;
},
// links
findPost: (url, posts) => {
if (!url || !posts) return null;
return posts[url]?.toots?.[0] || null;
},
// feeds
normalizeEntries: (entries) => {
const md = markdownIt({ html: true, linkify: true })