chore: Update translations
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Martti Malmi 2024-02-05 10:01:12 +00:00
parent aefe8a8210
commit 280a7eaac2
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { findTag } from "./utils";
import { EventExt } from "./event-ext";
import { NostrLink } from "./nostr-link";
import debug from "debug";
import {LRUCache} from "lru-cache";
import { LRUCache } from "lru-cache";
const Log = debug("zaps");
const ParsedZapCache = new LRUCache<string, ParsedZap>({ max: 1000 });

View File

@ -6,7 +6,7 @@ import { RelayHandler, NostrEvent } from "./types";
// placeholder:
const parseZap = (_zap: NostrEvent) => {
return { event: null } as { event: null | NostrEvent };
}
};
const log = debug("getForYouFeed");
@ -63,7 +63,8 @@ async function getMyReactedEvents(relay: RelayHandler, pubkey: string) {
kinds: [1, 6, 7, 9735],
}) as NostrEvent[];
myEvents.forEach(ev => {
const targetEventId = ev.kind === 9735 ? parseZap(ev).event?.id : ev.tags.find((tag: string[]) => tag[0] === "e")?.[1];
const targetEventId =
ev.kind === 9735 ? parseZap(ev).event?.id : ev.tags.find((tag: string[]) => tag[0] === "e")?.[1];
if (targetEventId) {
myReactedEventIds.add(targetEventId);
}