add optional idb "relay" worker

This commit is contained in:
Martti Malmi
2024-01-03 16:52:19 +02:00
parent 8571ea0aa7
commit 395848fd8c
12 changed files with 272 additions and 70 deletions

View File

@ -47,7 +47,10 @@ export default class SocialGraph {
}
}
handleFollowEvent(event: NostrEvent) {
handleEvent(event: NostrEvent) {
if (event.kind !== 3) {
return;
}
try {
const author = ID(event.pubkey);
const timestamp = event.created_at;