Add lookups for static user list, make LDAP optional

This commit is contained in:
2024-10-22 13:59:01 +02:00
parent ba7336b4ee
commit 28520c59b9
13 changed files with 75 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import { Context } from "@oak/oak";
import { nip19 } from "@nostr/tools";
import { log } from "../log.ts";
import { lookupUsernameByPubkey } from "../ldap.ts";
import { lookupUsernameByPubkey } from "../directory.ts";
import notFoundHandler from "../handlers/not-found.ts";
const naddrHandler = async function (ctx: Context) {