fix
This commit is contained in:
parent
61f87b7892
commit
93a1504aa3
1 changed files with 5 additions and 2 deletions
|
|
@ -104,9 +104,12 @@ export default class Handler {
|
||||||
if (e.kind !== 21000 || !e.pubkey) {
|
if (e.kind !== 21000 || !e.pubkey) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const app = apps[e.pubkey]
|
const pubTags = e.tags.find(tags => tags && tags.length > 1 && tags[0] === 'p')
|
||||||
|
if (!pubTags) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const app = apps[pubTags[1]]
|
||||||
if (!app) {
|
if (!app) {
|
||||||
log("unknown app key", e.tags)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const eventId = e.id
|
const eventId = e.id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue