Fix megalodon imports

This commit is contained in:
Laura Hausmann 2023-07-21 21:25:31 +02:00
parent 8885a7df30
commit bb60b7e107
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
9 changed files with 10 additions and 10 deletions

View File

@ -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";

View File

@ -1,4 +1,4 @@
import { Entity } from "megalodon";
import { Entity } from "megalodon/src";
import { convertId, IdType } from "../index.js";
function simpleConvert(data: any) {

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";
/**

View File

@ -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";