feat: add a firehose feed
This commit is contained in:
parent
c2b918a3c6
commit
6898c03c8f
6 changed files with 42 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue