Loading backend/src/__tests__/federation.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ import { type Software as FTK_Software, SOFTWARES, } from "@sc07/fedi-testkit"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; import { openTunnel, Tunnel } from "@hongminhee/localtunnel"; import { Server } from "node:http"; import { type APub as TAPub } from "../apub/utils.js"; Loading backend/src/apub/utils.live.ts +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import { } from "@fedify/fedify"; import { federation, USER_IDENTIFIER } from "./federation.js"; import { Temporal } from "@js-temporal/polyfill"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; import { IProfile } from "../lib/instance/userMeta.js"; import { getSafeURL } from "../lib/utils.js"; Loading backend/src/apub/utils.stub.ts +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import { import { IProfile } from "../lib/instance/userMeta.js"; import { USER_IDENTIFIER } from "./federation.js"; import { APubLive } from "./utils.live.js"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; export class APubStub extends APubLive { constructor() { Loading backend/src/handoff/activitypub.ts +1 −1 Original line number Diff line number Diff line import { Actor, ChatMessage, Create, Mention, Note } from "@fedify/fedify"; import { HandoffSession } from "../controllers/HandoffSession.js"; import { HandoffSession } from "../models/HandoffSession.js"; import { APub } from "../apub/utils.js"; import { USER_IDENTIFIER } from "../apub/federation.js"; import { Temporal } from "@js-temporal/polyfill"; Loading backend/src/handoff/index.ts +1 −6 Original line number Diff line number Diff line Loading @@ -9,13 +9,8 @@ export class Handoff { } static get() { if (!process.env.HANDOFF_TOKEN) throw new Error("HANDOFF_TOKEN not set, cannot use Handoff"); if (!this.canEnable()) throw new Error( "This should never occur, developer missed adding description throw above this line" ); throw new Error("Cannot enable handoff, is HANDOFF_TOKEN set?"); if (!this.instance) this.instance = new Handoff(); Loading Loading
backend/src/__tests__/federation.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ import { type Software as FTK_Software, SOFTWARES, } from "@sc07/fedi-testkit"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; import { openTunnel, Tunnel } from "@hongminhee/localtunnel"; import { Server } from "node:http"; import { type APub as TAPub } from "../apub/utils.js"; Loading
backend/src/apub/utils.live.ts +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import { } from "@fedify/fedify"; import { federation, USER_IDENTIFIER } from "./federation.js"; import { Temporal } from "@js-temporal/polyfill"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; import { IProfile } from "../lib/instance/userMeta.js"; import { getSafeURL } from "../lib/utils.js"; Loading
backend/src/apub/utils.stub.ts +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import { import { IProfile } from "../lib/instance/userMeta.js"; import { USER_IDENTIFIER } from "./federation.js"; import { APubLive } from "./utils.live.js"; import { AuthSession } from "../controllers/AuthSession.js"; import { AuthSession } from "../models/AuthSession.js"; export class APubStub extends APubLive { constructor() { Loading
backend/src/handoff/activitypub.ts +1 −1 Original line number Diff line number Diff line import { Actor, ChatMessage, Create, Mention, Note } from "@fedify/fedify"; import { HandoffSession } from "../controllers/HandoffSession.js"; import { HandoffSession } from "../models/HandoffSession.js"; import { APub } from "../apub/utils.js"; import { USER_IDENTIFIER } from "../apub/federation.js"; import { Temporal } from "@js-temporal/polyfill"; Loading
backend/src/handoff/index.ts +1 −6 Original line number Diff line number Diff line Loading @@ -9,13 +9,8 @@ export class Handoff { } static get() { if (!process.env.HANDOFF_TOKEN) throw new Error("HANDOFF_TOKEN not set, cannot use Handoff"); if (!this.canEnable()) throw new Error( "This should never occur, developer missed adding description throw above this line" ); throw new Error("Cannot enable handoff, is HANDOFF_TOKEN set?"); if (!this.instance) this.instance = new Handoff(); Loading