feat: add a firehose feed

This commit is contained in:
Devin Haska 2025-01-27 21:29:42 -08:00
parent c2b918a3c6
commit 6898c03c8f
6 changed files with 42 additions and 1 deletions

View file

@ -86,6 +86,13 @@ export const filterFavourites = (collection) => {
);
};
export const filterByTags = (collection, tags = []) => {
return collection.filter(
(item) =>
item.data.tags && !item.data.tags.every((tag) => tags.includes(tag)),
);
};
export const isOld = (dateArg) => {
const date = dayjs(dateArg);
const now = dayjs();