diff options
author | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-07-06 15:45:22 -0300 |
---|---|---|
committer | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-07-06 15:45:22 -0300 |
commit | a8c6eb9542e4baba3ce05da454fc52548214ba06 (patch) | |
tree | 4a2bac5ad88bc56fb24eab4ad398094341fc3810 /src/lib | |
parent | 87df5a27cb34ada02f54dacf4299574f04038612 (diff) |
feat: kind of integrate activity pub
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/collection/helpers.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/collection/helpers.ts b/src/lib/collection/helpers.ts index 83eb21d..587180b 100644 --- a/src/lib/collection/helpers.ts +++ b/src/lib/collection/helpers.ts @@ -96,6 +96,9 @@ export async function fromPosts<T extends Entry, U>( const entries = await getCollection<"blog", T>("blog", filter); return predicate(entries); } +export const isEntry = ( + _entry: CollectionEntry<"blog">, +): _entry is Entry => true; export const isOriginal = ( entry: CollectionEntry<"blog">, ): entry is OriginalEntry => entry.data.kind === "original"; |