Skip to content

Commit 4fb7731

Browse files
working publishing
1 parent 361ef89 commit 4fb7731

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/views/Export/Nostr.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,6 @@ export default {
398398
// 3. Prepare content
399399
const title = metaData?.title || "LiaScript Course";
400400
401-
// Format content as markdown with header
402-
const fullContent = `# ${title}\n\n${contentData}`;
403-
404401
// 4. Create the event (NIP-33 parameterized replaceable event)
405402
const event = {
406403
kind: 30023, // Long-form content
@@ -412,7 +409,7 @@ export default {
412409
["summary", metaData?.description || "LiaScript course material"],
413410
...this.tags.map((tag) => ["t", tag]),
414411
],
415-
content: fullContent,
412+
content: contentData,
416413
};
417414
418415
// 5. If user has provided private key, sign and publish
@@ -439,9 +436,10 @@ export default {
439436
kind: 30023,
440437
pubkey: pubkey,
441438
identifier: this.storageId,
439+
relays: relays,
442440
});
443441
444-
console.log("Published as naddr:", naddr);
442+
console.log("Published as naddr:", "nostr:" + naddr);
445443
446444
// Success!
447445
this.step = "success";

0 commit comments

Comments
 (0)