fix: follow data

This commit is contained in:
Cory Dransfeldt 2023-03-28 11:26:48 -07:00
parent 23ea674eea
commit 0fd62529cf
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View file

@ -8,6 +8,13 @@ module.exports = async function () {
const entries = feed.getEntries()
const res = await entries
const activity = { posts: [] }
res.forEach((entry) => activity.posts.push({ title: entry.title, url: entry.url }))
res.forEach((entry) =>
activity.posts.push({
id: entry.url,
title: entry.title,
url: entry.url,
date_published: entry.published,
})
)
return activity
}