Refactoring

This commit is contained in:
syuilo
2021-07-15 20:45:32 +09:00
parent 1c241776a6
commit dc69490e3a
27 changed files with 38 additions and 43 deletions

View File

@ -1,7 +1,7 @@
import define from '../define';
import { Users } from '../../../models';
import { fetchMeta } from '@/misc/fetch-meta';
import parseAcct from '@/misc/acct/parse';
import { parseAcct } from '@/misc/acct';
import { User } from '../../../models/entities/user';
export const meta = {

View File

@ -1,7 +1,7 @@
import * as Limiter from 'ratelimiter';
import { redisClient } from '../../db/redis';
import { IEndpoint } from './endpoints';
import getAcct from '@/misc/acct/render';
import { getAcct } from '@/misc/acct';
import { User } from '../../models/entities/user';
import Logger from '../../services/logger';

View File

@ -18,7 +18,7 @@ import { fetchMeta } from '@/misc/fetch-meta';
import { genOpenapiSpec } from '../api/openapi/gen-spec';
import config from '@/config';
import { Users, Notes, Emojis, UserProfiles, Pages, Channels, Clips, GalleryPosts } from '../../models';
import parseAcct from '@/misc/acct/parse';
import { parseAcct } from '@/misc/acct';
import { getNoteSummary } from '@/misc/get-note-summary';
import { getConnection } from 'typeorm';
import { redisClient } from '../../db/redis';

View File

@ -1,8 +1,7 @@
import * as Router from '@koa/router';
import config from '@/config';
import parseAcct from '@/misc/acct/parse';
import Acct from '@/misc/acct/type';
import { parseAcct, Acct } from '@/misc/acct';
import { links } from './nodeinfo';
import { escapeAttribute, escapeValue } from '../prelude/xml';
import { Users } from '../models';