Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Aug 12, 2024
1 parent 93789ee commit 3fb87df
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/nostr/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as nostrify from "@nostrify/nostrify";
import { Filter, Kind } from "nostr-tools";
import {
CONTENT_MAXIMUM_LENGTH,
EARLIEST_FILTER_SINCE,
MAP_NOTE_REPOST_KIND,
PLUS_CODE_TAG_KEY,
TRUSTED_VALIDATION_PUBKEYS,
Expand All @@ -17,7 +16,6 @@ import {
getTagFirstValueFromEvent,
isValidPlusCode,
} from "./utils";
import { logStateToConsole, promiseWithTimeout } from "../utils";

const fetchProfileQueue = newQueue(2);

Expand Down Expand Up @@ -51,17 +49,6 @@ export const subscribe = async ({
}: SubscribeParams) => {
console.log("#qnvvsm nostr/subscribe");

const oneMonthInSeconds = 30 * 24 * 60 * 60;
const oneMonthAgo = Math.round(Date.now() / 1e3) - oneMonthInSeconds;
const since = Math.max(EARLIEST_FILTER_SINCE, oneMonthAgo);
const eventsFilter: Filter = {
kinds: [MAP_NOTE_REPOST_KIND],
"#L": ["open-location-code"],
since,
authors: TRUSTED_VALIDATION_PUBKEYS,
limit,
};

const onNoteEvent = (event: Kind30398Event) => {
// if (isDev()) console.log("#gITVd2 gotNoteEvent", event);

Expand Down

0 comments on commit 3fb87df

Please sign in to comment.