Commit eed542e5 authored by Grant's avatar Grant
Browse files

move models & initial sidecar

parent 0c1f6103
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";
+1 −1
Original line number Diff line number Diff line
@@ -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";

+1 −1
Original line number Diff line number Diff line
@@ -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() {
+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";
+1 −6
Original line number Diff line number Diff line
@@ -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