Fix lint errors

This commit is contained in:
2024-10-21 00:30:34 +02:00
parent fe9db7509d
commit 0471e05ef3
6 changed files with 5 additions and 18 deletions

View File

@@ -2,11 +2,8 @@ import { Context } from "@oak/oak";
import { nip19 } from "@nostr/tools";
import { log } from "../log.ts";
import { lookupUsernameByPubkey } from "../ldap.ts";
import { fetchProfileEvent } from "../nostr.ts";
import { profilePageHtml } from "../html.ts";
const nprofileHandler = async function (ctx: Context) {
const { request } = ctx;
const nprofile = ctx.params.path;
try {

View File

@@ -2,11 +2,8 @@ import { Context } from "@oak/oak";
import { nip19 } from "@nostr/tools";
import { log } from "../log.ts";
import { lookupUsernameByPubkey } from "../ldap.ts";
import { fetchProfileEvent } from "../nostr.ts";
import { profilePageHtml } from "../html.ts";
const npubHandler = async function (ctx: Context) {
const { request } = ctx;
const npub = ctx.params.path;
try {

View File

@@ -1,12 +1,10 @@
import { Context } from "@oak/oak";
import { nip19 } from "@nostr/tools";
import { log } from "../log.ts";
import { lookupPubkeyByUsername } from "../ldap.ts";
import { fetchArticlesByAuthor, fetchProfileEvent } from "../nostr.ts";
import { profilePageHtml } from "../html.ts";
const usernameHandler = async function (ctx: Context) {
const { request } = ctx;
const username = ctx.params.path.replace(/^(@|~)/, "");
const pubkey = await lookupPubkeyByUsername(username);