From f1b7ac9b21d5a95a4293606f02bf9c39d987e0f5 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 24 Oct 2023 13:13:18 +0800 Subject: [PATCH] Revert ap import from another branch --- packages/api/src/server.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/packages/api/src/server.ts b/packages/api/src/server.ts index 5c6c27d87..b40a82bb8 100755 --- a/packages/api/src/server.ts +++ b/packages/api/src/server.ts @@ -38,7 +38,6 @@ import { sentryConfig } from './sentry' import { getClaimsByToken, getTokenByRequest } from './utils/auth' import { corsConfig } from './utils/corsConfig' import { buildLogger, buildLoggerTransport } from './utils/logger' -import { FirefishClient, createFirefishUserClient } from './activitypub' const PORT = process.env.PORT || 4000 @@ -179,28 +178,4 @@ const main = async (): Promise => { // only call main if the file was called from the CLI and wasn't required from another module if (require.main === module) { main() - ;(async () => { - // console.log( - // 'creating user with firefish token: ', - // process.env.FIREFISH_TOKEN - // ) - // const client = new FirefishClient( - // 'http://localhost:8000/api', - // process.env.FIREFISH_TOKEN || 'firefish-token', - // 'abc123' - // ) - // // const token = await client.createUserActor( - // // 'a03a7396-909b-11ed-9075-c3f3cf07eed9', - // // 'jacksonh@gmail.com', - // // 'jacksonharper' - // // ) - // // console.log('user token: ', token) - // // if (token) { - // // const secret = client.createAppForActor(token) - // // console.log('created secretL: ', secret) - // // } - // const appClient = createFirefishUserClient('UEpw5pStVG5hFhrX') - // appClient.setupUserActor('a03a7396-909b-11ed-9075-c3f3cf07eed9') - // appClient.getUserInfo() - })() }