Slight refactoring, begin work on major moderation overhaul

This commit is contained in:
Jesse Wierzbinski 2024-03-03 15:27:08 -10:00
parent e05dca9fc1
commit 2bc9ff51ea
No known key found for this signature in database
45 changed files with 639 additions and 109 deletions

View file

@ -1,4 +1,4 @@
import type { ConfigType } from "@config";
import type { ConfigType } from "~classes/configmanager";
import type { Attachment } from "@prisma/client";
import type { APIAsyncAttachment } from "~types/entities/async_attachment";
import type { APIAttachment } from "~types/entities/attachment";

View file

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import type { Like as LysandLike } from "~types/lysand/Object";
import { getConfig } from "@config";
import { getConfig } from "~classes/configmanager";
import type { Like } from "@prisma/client";
import { client } from "~database/datasource";
import type { UserWithRelations } from "./User";

View file

@ -1,4 +1,4 @@
import { getConfig } from "@config";
import { getConfig } from "~classes/configmanager";
import { Worker } from "bullmq";
import { client, federationQueue } from "~database/datasource";
import {

View file

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import { getConfig } from "@config";
import { getConfig } from "~classes/configmanager";
import type { UserWithRelations } from "./User";
import {
fetchRemoteUser,

View file

@ -1,5 +1,5 @@
import type { ConfigType } from "@config";
import { getConfig } from "@config";
import type { ConfigType } from "~classes/configmanager";
import { getConfig } from "~classes/configmanager";
import type { APIAccount } from "~types/entities/account";
import type { User as LysandUser } from "~types/lysand/Object";
import { htmlToText } from "html-to-text";