Add makeCalendarFeed

This commit is contained in:
Jon Staab
2025-02-05 16:26:22 -08:00
parent a0c6e46184
commit db69c56f57
7 changed files with 193 additions and 52 deletions
+2 -9
View File
@@ -40,14 +40,7 @@ import {
asDecryptedEvent,
normalizeRelayUrl,
} from "@welshman/util"
import type {
TrustedEvent,
Repository,
SignedEvent,
PublishedList,
List,
Filter,
} from "@welshman/util"
import type {TrustedEvent, SignedEvent, PublishedList, List, Filter} from "@welshman/util"
import {Nip59} from "@welshman/signer"
import {
pubkey,
@@ -261,7 +254,7 @@ export const getUrlsForEvent = derived([trackerStore, thunks], ([$tracker, $thun
}
})
export const getEventsForUrl = (repository: Repository, url: string, filters: Filter[]) => {
export const getEventsForUrl = (url: string, filters: Filter[]) => {
const $getUrlsForEvent = get(getUrlsForEvent)
const $events = repository.query(filters)