Skip to content

Commit

Permalink
Merge pull request #5 from atrifat/fix-publish-note-events-position
Browse files Browse the repository at this point in the history
fix: move publishNostrEvent position (#4)
  • Loading branch information
atrifat authored Oct 16, 2023
2 parents 7d599c1 + 071c8f5 commit 773082b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ const handleNotesEvent = async (relay, sub_id, ev) => {

}

// Broadcast nostr note events to target relay
await publishNostrEvent(pool, relaysToPublish, ev);

if (ENABLE_LANGUAGE_DETECTION) {
const startTime = performance.now();
let err, detectedLanguageResponse;
Expand Down Expand Up @@ -421,6 +418,9 @@ const handleNotesEvent = async (relay, sub_id, ev) => {
}
});
}

// Broadcast nostr note events to target relay after classification
await publishNostrEvent(pool, relaysToPublish, ev);
};

let eventCounter = {};
Expand Down

0 comments on commit 773082b

Please sign in to comment.