kind 21000
This commit is contained in:
parent
3d4bd4be63
commit
8f36ae003a
1 changed files with 3 additions and 3 deletions
|
|
@ -103,12 +103,12 @@ export default class Handler {
|
||||||
const sub = relay.sub([
|
const sub = relay.sub([
|
||||||
{
|
{
|
||||||
since: Math.ceil(Date.now() / 1000),
|
since: Math.ceil(Date.now() / 1000),
|
||||||
kinds: [4],
|
kinds: [21000],
|
||||||
'#p': [appInfo.publicKey],
|
'#p': [appInfo.publicKey],
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
sub.on("event", async (e) => {
|
sub.on("event", async (e) => {
|
||||||
if (e.kind !== 4 || !e.pubkey) {
|
if (e.kind !== 21000 || !e.pubkey) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
|
@ -135,7 +135,7 @@ export default class Handler {
|
||||||
toSign = {
|
toSign = {
|
||||||
content,
|
content,
|
||||||
created_at: Math.floor(Date.now() / 1000),
|
created_at: Math.floor(Date.now() / 1000),
|
||||||
kind: 4,
|
kind: 21000,
|
||||||
pubkey: appInfo.publicKey,
|
pubkey: appInfo.publicKey,
|
||||||
tags: [['p', data.pub]],
|
tags: [['p', data.pub]],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue