mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
Fix megalodon imports
This commit is contained in:
parent
8885a7df30
commit
bb60b7e107
9 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
import Router from "@koa/router";
|
||||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import { apiAuthMastodon } from "./endpoints/auth.js";
|
||||
import { apiAccountMastodon } from "./endpoints/account.js";
|
||||
import { apiStatusMastodon } from "./endpoints/status.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Entity } from "megalodon";
|
||||
import { Entity } from "megalodon/src";
|
||||
import { convertId, IdType } from "../index.js";
|
||||
|
||||
function simpleConvert(data: any) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import Router from "@koa/router";
|
||||
import { koaBody } from "koa-body";
|
||||
import { getClient } from "../ApiMastodonCompatibleService.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import Router from "@koa/router";
|
||||
import { getClient } from "../ApiMastodonCompatibleService.js";
|
||||
import { IdType, convertId } from "../../index.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Entity } from "megalodon";
|
||||
import { Entity } from "megalodon/src";
|
||||
import config from "@/config/index.js";
|
||||
import { fetchMeta } from "@/misc/fetch-meta.js";
|
||||
import { Users, Notes } from "@/models/index.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import Router from "@koa/router";
|
||||
import { koaBody } from "koa-body";
|
||||
import { convertId, IdType } from "../../index.js";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import Router from "@koa/router";
|
||||
import { getClient } from "../ApiMastodonCompatibleService.js";
|
||||
import axios from "axios";
|
||||
import { Converter } from "megalodon";
|
||||
import { Converter } from "megalodon/src";
|
||||
import { convertTimelinesArgsId, limitToInt } from "./timeline.js";
|
||||
import { convertAccount, convertStatus } from "../converters.js";
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import { readNotification } from "../common/read-notification.js";
|
|||
import channels from "./channels/index.js";
|
||||
import type Channel from "./channel.js";
|
||||
import type { StreamEventEmitter, StreamMessages } from "./types.js";
|
||||
import { Converter } from "megalodon";
|
||||
import { Converter } from "megalodon/src";
|
||||
import { getClient } from "../mastodon/ApiMastodonCompatibleService.js";
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ import { createTemp } from "@/misc/create-temp.js";
|
|||
import { publishMainStream } from "@/services/stream.js";
|
||||
import * as Acct from "@/misc/acct.js";
|
||||
import { envOption } from "@/env.js";
|
||||
import megalodon, { MegalodonInterface } from "megalodon";
|
||||
import megalodon, { MegalodonInterface } from "megalodon/src";
|
||||
import activityPub from "./activitypub.js";
|
||||
import nodeinfo from "./nodeinfo.js";
|
||||
import wellKnown from "./well-known.js";
|
||||
|
|
Loading…
Reference in a new issue