add NIP-89 client tag when posting (#36)

This commit is contained in:
mroxso
2025-02-02 17:29:39 +01:00
committed by GitHub
parent 9f4e0cb780
commit 54ffcdebfd

View File

@@ -217,6 +217,10 @@ const UploadComponent: React.FC = () => {
const createdAt = Math.floor(Date.now() / 1000)
// NIP-89
// ["client","lumina","31990:ff363e4afc398b7dd8ceb0b2e73e96fe9621ababc22ab150ffbb1aa0f34df8b2:1731850618505"]
noteTags.push(["client", "lumina", "31990:" + "ff363e4afc398b7dd8ceb0b2e73e96fe9621ababc22ab150ffbb1aa0f34df8b2" + ":" + createdAt])
// Create the actual note
const noteEvent: NostrEvent = {
kind: 20,