mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 13:25:45 +02:00
refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import * as Router from '@koa/router';
|
||||
import config from '@/config/index';
|
||||
import { renderActivity } from '@/remote/activitypub/renderer/index';
|
||||
import renderOrderedCollection from '@/remote/activitypub/renderer/ordered-collection';
|
||||
import { setResponseType } from '../activitypub';
|
||||
import renderNote from '@/remote/activitypub/renderer/note';
|
||||
import { Users, Notes, UserNotePinings } from '@/models/index';
|
||||
import Router from '@koa/router';
|
||||
import config from '@/config/index.js';
|
||||
import { renderActivity } from '@/remote/activitypub/renderer/index.js';
|
||||
import renderOrderedCollection from '@/remote/activitypub/renderer/ordered-collection.js';
|
||||
import { setResponseType } from '../activitypub.js';
|
||||
import renderNote from '@/remote/activitypub/renderer/note.js';
|
||||
import { Users, Notes, UserNotePinings } from '@/models/index.js';
|
||||
|
||||
export default async (ctx: Router.RouterContext) => {
|
||||
const userId = ctx.params.user;
|
||||
|
||||
Reference in New Issue
Block a user