mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 21:44:23 +01:00
Add APISigner and AdminSigner classes, implement NostrSigner interface
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as pipeline from '@/pipeline.ts';
|
||||
import { signAdminEvent } from '@/sign.ts';
|
||||
import { AdminSigner } from '@/signers/AdminSigner.ts';
|
||||
import { type EventStub } from '@/utils/api.ts';
|
||||
import { nostrNow } from '@/utils.ts';
|
||||
|
||||
@@ -12,7 +12,9 @@ switch (Deno.args[0]) {
|
||||
}
|
||||
|
||||
async function publish(t: EventStub) {
|
||||
const event = await signAdminEvent({
|
||||
const signer = new AdminSigner();
|
||||
|
||||
const event = await signer.signEvent({
|
||||
content: '',
|
||||
created_at: nostrNow(),
|
||||
tags: [],
|
||||
|
||||
Reference in New Issue
Block a user