Merge pull request #556 from AustinKelsay/bugfix-crosspost-remove-a-tag

Removing a tag, retested crossposts and edits
This commit is contained in:
Keyan 2023-10-12 13:08:20 -05:00 committed by GitHub
commit ad9465acda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()]
]