Removing a tag, retested crossposts and edits

This commit is contained in:
austinkelsay 2023-10-11 17:26:25 -05:00
parent 8ace053be5
commit cdd3e4fdd4
1 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import { useQuery } from '@apollo/client'
import { SETTINGS } from '../fragments/users'
async function discussionToEvent (item) {
const pubkey = await window.nostr.getPublicKey()
const createdAt = Math.floor(Date.now() / 1000)
return {
@ -14,8 +13,7 @@ async function discussionToEvent (item) {
kind: 30023,
content: item.text,
tags: [
['d', `https://stacker.news/items/${item.id}`],
['a', `30023:${pubkey}:https://stacker.news/items/${item.id}`, 'wss://relay.nostr.band'],
['d', item.id.toString()],
['title', item.title],
['published_at', createdAt.toString()]
]