mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-04 22:24:25 +01:00
Log relay error, remove unnecessary DVM conditional
This commit is contained in:
@@ -85,6 +85,7 @@ function connectStream(socket: WebSocket) {
|
||||
send(['OK', event.id, false, e.message]);
|
||||
} else {
|
||||
send(['OK', event.id, false, 'error: something went wrong']);
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,11 +20,6 @@ export class DVM {
|
||||
|
||||
static async nameRegistration(event: NostrEvent): Promise<void> {
|
||||
const admin = await new AdminSigner().getPublicKey();
|
||||
|
||||
if (event.kind !== 5950 && event.pubkey !== admin) {
|
||||
throw new Error('Only NIP-05 job requests are permitted');
|
||||
}
|
||||
|
||||
const input = event.tags.find(([name]) => name === 'i')?.[1];
|
||||
const tagged = !!event.tags.find(([name, value]) => name === 'p' && value === admin);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user