Removing a tag, retested crossposts and edits
This commit is contained in:
parent
8ace053be5
commit
cdd3e4fdd4
@ -6,7 +6,6 @@ import { useQuery } from '@apollo/client'
|
|||||||
import { SETTINGS } from '../fragments/users'
|
import { SETTINGS } from '../fragments/users'
|
||||||
|
|
||||||
async function discussionToEvent (item) {
|
async function discussionToEvent (item) {
|
||||||
const pubkey = await window.nostr.getPublicKey()
|
|
||||||
const createdAt = Math.floor(Date.now() / 1000)
|
const createdAt = Math.floor(Date.now() / 1000)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -14,8 +13,7 @@ async function discussionToEvent (item) {
|
|||||||
kind: 30023,
|
kind: 30023,
|
||||||
content: item.text,
|
content: item.text,
|
||||||
tags: [
|
tags: [
|
||||||
['d', `https://stacker.news/items/${item.id}`],
|
['d', item.id.toString()],
|
||||||
['a', `30023:${pubkey}:https://stacker.news/items/${item.id}`, 'wss://relay.nostr.band'],
|
|
||||||
['title', item.title],
|
['title', item.title],
|
||||||
['published_at', createdAt.toString()]
|
['published_at', createdAt.toString()]
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user