Fix lint errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user