Fix style
This commit is contained in:
parent
5a6c3fc11c
commit
bcc549fd8e
@ -1,7 +1,8 @@
|
|||||||
import { ObjectID } from 'mongodb';
|
import { ObjectID } from 'mongodb';
|
||||||
import * as Router from 'koa-router';
|
import * as Router from 'koa-router';
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
import $ from 'cafy'; import ID, { transform } from '../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../misc/cafy-id';
|
||||||
import User from '../../models/user';
|
import User from '../../models/user';
|
||||||
import Following from '../../models/following';
|
import Following from '../../models/following';
|
||||||
import { renderActivity } from '../../remote/activitypub/renderer';
|
import { renderActivity } from '../../remote/activitypub/renderer';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Report, { packMany } from '../../../../models/abuse-user-report';
|
import Report, { packMany } from '../../../../models/abuse-user-report';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import App, { pack } from '../../../../models/app';
|
import App, { pack } from '../../../../models/app';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import User, { pack } from '../../../../models/user';
|
import User, { pack } from '../../../../models/user';
|
||||||
import Blocking from '../../../../models/blocking';
|
import Blocking from '../../../../models/blocking';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import User, { pack } from '../../../../models/user';
|
import User, { pack } from '../../../../models/user';
|
||||||
import Blocking from '../../../../models/blocking';
|
import Blocking from '../../../../models/blocking';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Blocking, { packMany } from '../../../../models/blocking';
|
import Blocking, { packMany } from '../../../../models/blocking';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import DriveFile, { packMany } from '../../../../models/drive-file';
|
import DriveFile, { packMany } from '../../../../models/drive-file';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFile from '../../../../../models/drive-file';
|
import DriveFile from '../../../../../models/drive-file';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { packMany } from '../../../../../models/note';
|
import { packMany } from '../../../../../models/note';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import { validateFileName, pack } from '../../../../../models/drive-file';
|
import { validateFileName, pack } from '../../../../../models/drive-file';
|
||||||
import create from '../../../../../services/drive/add-file';
|
import create from '../../../../../services/drive/add-file';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFile from '../../../../../models/drive-file';
|
import DriveFile from '../../../../../models/drive-file';
|
||||||
import del from '../../../../../services/drive/delete-file';
|
import del from '../../../../../services/drive/delete-file';
|
||||||
import { publishDriveStream } from '../../../../../stream';
|
import { publishDriveStream } from '../../../../../stream';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFile, { pack } from '../../../../../models/drive-file';
|
import DriveFile, { pack } from '../../../../../models/drive-file';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder from '../../../../../models/drive-folder';
|
import DriveFolder from '../../../../../models/drive-folder';
|
||||||
import DriveFile, { validateFileName, pack } from '../../../../../models/drive-file';
|
import DriveFile, { validateFileName, pack } from '../../../../../models/drive-file';
|
||||||
import { publishDriveStream } from '../../../../../stream';
|
import { publishDriveStream } from '../../../../../stream';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import { pack } from '../../../../../models/drive-file';
|
import { pack } from '../../../../../models/drive-file';
|
||||||
import uploadFromUrl from '../../../../../services/drive/upload-from-url';
|
import uploadFromUrl from '../../../../../services/drive/upload-from-url';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import DriveFolder, { pack } from '../../../../models/drive-folder';
|
import DriveFolder, { pack } from '../../../../models/drive-folder';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder, { isValidFolderName, pack } from '../../../../../models/drive-folder';
|
import DriveFolder, { isValidFolderName, pack } from '../../../../../models/drive-folder';
|
||||||
import { publishDriveStream } from '../../../../../stream';
|
import { publishDriveStream } from '../../../../../stream';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder from '../../../../../models/drive-folder';
|
import DriveFolder from '../../../../../models/drive-folder';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { publishDriveStream } from '../../../../../stream';
|
import { publishDriveStream } from '../../../../../stream';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder, { pack } from '../../../../../models/drive-folder';
|
import DriveFolder, { pack } from '../../../../../models/drive-folder';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder, { pack } from '../../../../../models/drive-folder';
|
import DriveFolder, { pack } from '../../../../../models/drive-folder';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import DriveFolder, { isValidFolderName, pack } from '../../../../../models/drive-folder';
|
import DriveFolder, { isValidFolderName, pack } from '../../../../../models/drive-folder';
|
||||||
import { publishDriveStream } from '../../../../../stream';
|
import { publishDriveStream } from '../../../../../stream';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import DriveFile, { packMany } from '../../../../models/drive-file';
|
import DriveFile, { packMany } from '../../../../models/drive-file';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import User, { pack } from '../../../../models/user';
|
import User, { pack } from '../../../../models/user';
|
||||||
import Following from '../../../../models/following';
|
import Following from '../../../../models/following';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import User, { pack } from '../../../../models/user';
|
import User, { pack } from '../../../../models/user';
|
||||||
import Following from '../../../../models/following';
|
import Following from '../../../../models/following';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import acceptFollowRequest from '../../../../../services/following/requests/accept';
|
import acceptFollowRequest from '../../../../../services/following/requests/accept';
|
||||||
import User from '../../../../../models/user';
|
import User from '../../../../../models/user';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import cancelFollowRequest from '../../../../../services/following/requests/cancel';
|
import cancelFollowRequest from '../../../../../services/following/requests/cancel';
|
||||||
import User, { pack } from '../../../../../models/user';
|
import User, { pack } from '../../../../../models/user';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//import $ from 'cafy'; import ID, { transform } from '../../../../../cafy-id';
|
//import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../cafy-id';
|
||||||
import FollowRequest, { pack } from '../../../../../models/follow-request';
|
import FollowRequest, { pack } from '../../../../../models/follow-request';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import rejectFollowRequest from '../../../../../services/following/requests/reject';
|
import rejectFollowRequest from '../../../../../services/following/requests/reject';
|
||||||
import User from '../../../../../models/user';
|
import User from '../../../../../models/user';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import ReversiGame, { pack } from '../../../../../models/games/reversi/game';
|
import ReversiGame, { pack } from '../../../../../models/games/reversi/game';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../../misc/cafy-id';
|
||||||
import ReversiGame, { pack } from '../../../../../../models/games/reversi/game';
|
import ReversiGame, { pack } from '../../../../../../models/games/reversi/game';
|
||||||
import Reversi from '../../../../../../games/reversi/core';
|
import Reversi from '../../../../../../games/reversi/core';
|
||||||
import define from '../../../../define';
|
import define from '../../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../../misc/cafy-id';
|
||||||
import ReversiGame, { pack } from '../../../../../../models/games/reversi/game';
|
import ReversiGame, { pack } from '../../../../../../models/games/reversi/game';
|
||||||
import { publishReversiGameStream } from '../../../../../../stream';
|
import { publishReversiGameStream } from '../../../../../../stream';
|
||||||
import define from '../../../../define';
|
import define from '../../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Matching, { pack as packMatching } from '../../../../../models/games/reversi/matching';
|
import Matching, { pack as packMatching } from '../../../../../models/games/reversi/matching';
|
||||||
import ReversiGame, { pack as packGame } from '../../../../../models/games/reversi/game';
|
import ReversiGame, { pack as packGame } from '../../../../../models/games/reversi/game';
|
||||||
import User from '../../../../../models/user';
|
import User from '../../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Favorite, { packMany } from '../../../../models/favorite';
|
import Favorite, { packMany } from '../../../../models/favorite';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Notification from '../../../../models/notification';
|
import Notification from '../../../../models/notification';
|
||||||
import { packMany } from '../../../../models/notification';
|
import { packMany } from '../../../../models/notification';
|
||||||
import { getFriendIds } from '../../common/get-friends';
|
import { getFriendIds } from '../../common/get-friends';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import { pack } from '../../../../models/user';
|
import { pack } from '../../../../models/user';
|
||||||
import { addPinned } from '../../../../services/i/pin';
|
import { addPinned } from '../../../../services/i/pin';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Signin, { pack } from '../../../../models/signin';
|
import Signin, { pack } from '../../../../models/signin';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import { pack } from '../../../../models/user';
|
import { pack } from '../../../../models/user';
|
||||||
import { removePinned } from '../../../../services/i/pin';
|
import { removePinned } from '../../../../services/i/pin';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import User, { isValidName, isValidDescription, isValidLocation, isValidBirthday, pack } from '../../../../models/user';
|
import User, { isValidName, isValidDescription, isValidLocation, isValidBirthday, pack } from '../../../../models/user';
|
||||||
import { publishMainStream } from '../../../../stream';
|
import { publishMainStream } from '../../../../stream';
|
||||||
import DriveFile from '../../../../models/drive-file';
|
import DriveFile from '../../../../models/drive-file';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Message from '../../../../models/messaging-message';
|
import Message from '../../../../models/messaging-message';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import { pack } from '../../../../models/messaging-message';
|
import { pack } from '../../../../models/messaging-message';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Message from '../../../../../models/messaging-message';
|
import Message from '../../../../../models/messaging-message';
|
||||||
import { isValidText } from '../../../../../models/messaging-message';
|
import { isValidText } from '../../../../../models/messaging-message';
|
||||||
import User from '../../../../../models/user';
|
import User from '../../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Message from '../../../../../models/messaging-message';
|
import Message from '../../../../../models/messaging-message';
|
||||||
import read from '../../../common/read-messaging-message';
|
import read from '../../../common/read-messaging-message';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import Mute from '../../../../models/mute';
|
import Mute from '../../../../models/mute';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import Mute from '../../../../models/mute';
|
import Mute from '../../../../models/mute';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Mute, { packMany } from '../../../../models/mute';
|
import Mute, { packMany } from '../../../../models/mute';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../misc/cafy-id';
|
||||||
import Note, { packMany } from '../../../models/note';
|
import Note, { packMany } from '../../../models/note';
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note, { packMany, INote } from '../../../../models/note';
|
import Note, { packMany, INote } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform, transformMany } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform, transformMany } from '../../../../misc/cafy-id';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import { length } from 'stringz';
|
import { length } from 'stringz';
|
||||||
import Note, { INote, isValidCw, pack } from '../../../../models/note';
|
import Note, { INote, isValidCw, pack } from '../../../../models/note';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import deleteNote from '../../../../services/note/delete';
|
import deleteNote from '../../../../services/note/delete';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Favorite from '../../../../../models/favorite';
|
import Favorite from '../../../../../models/favorite';
|
||||||
import Note from '../../../../../models/note';
|
import Note from '../../../../../models/note';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Favorite from '../../../../../models/favorite';
|
import Favorite from '../../../../../models/favorite';
|
||||||
import Note from '../../../../../models/note';
|
import Note from '../../../../../models/note';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { getFriends } from '../../common/get-friends';
|
import { getFriends } from '../../common/get-friends';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { getFriendIds, getFriends } from '../../common/get-friends';
|
import { getFriendIds, getFriends } from '../../common/get-friends';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Vote from '../../../../../models/poll-vote';
|
import Vote from '../../../../../models/poll-vote';
|
||||||
import Note from '../../../../../models/note';
|
import Note from '../../../../../models/note';
|
||||||
import Watching from '../../../../../models/note-watching';
|
import Watching from '../../../../../models/note-watching';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import Reaction, { pack } from '../../../../models/note-reaction';
|
import Reaction, { pack } from '../../../../models/note-reaction';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import createReaction from '../../../../../services/note/reaction/create';
|
import createReaction from '../../../../../services/note/reaction/create';
|
||||||
import { validateReaction } from '../../../../../models/note-reaction';
|
import { validateReaction } from '../../../../../models/note-reaction';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as mongo from 'mongodb';
|
import * as mongo from 'mongodb';
|
||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import deleteReaction from '../../../../../services/note/reaction/delete';
|
import deleteReaction from '../../../../../services/note/reaction/delete';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note, { packMany } from '../../../../models/note';
|
import Note, { packMany } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note, { packMany } from '../../../../models/note';
|
import Note, { packMany } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { getFriends } from '../../common/get-friends';
|
import { getFriends } from '../../common/get-friends';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { getFriendIds } from '../../common/get-friends';
|
import { getFriendIds } from '../../common/get-friends';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note, { pack } from '../../../../models/note';
|
import Note, { pack } from '../../../../models/note';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import Favorite from '../../../../models/favorite';
|
import Favorite from '../../../../models/favorite';
|
||||||
import NoteWatching from '../../../../models/note-watching';
|
import NoteWatching from '../../../../models/note-watching';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { getFriends } from '../../common/get-friends';
|
import { getFriends } from '../../common/get-friends';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import { packMany } from '../../../../models/note';
|
import { packMany } from '../../../../models/note';
|
||||||
import UserList from '../../../../models/user-list';
|
import UserList from '../../../../models/user-list';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Note from '../../../../../models/note';
|
import Note from '../../../../../models/note';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import watch from '../../../../../services/note/watch';
|
import watch from '../../../../../services/note/watch';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import Note from '../../../../../models/note';
|
import Note from '../../../../../models/note';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import unwatch from '../../../../../services/note/unwatch';
|
import unwatch from '../../../../../services/note/unwatch';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import Following from '../../../../models/following';
|
import Following from '../../../../models/following';
|
||||||
import { pack } from '../../../../models/user';
|
import { pack } from '../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import Following from '../../../../models/following';
|
import Following from '../../../../models/following';
|
||||||
import { pack } from '../../../../models/user';
|
import { pack } from '../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import Note from '../../../../models/note';
|
import Note from '../../../../models/note';
|
||||||
import User, { pack } from '../../../../models/user';
|
import User, { pack } from '../../../../models/user';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import UserList from '../../../../../models/user-list';
|
import UserList from '../../../../../models/user-list';
|
||||||
import User, { pack as packUser } from '../../../../../models/user';
|
import User, { pack as packUser } from '../../../../../models/user';
|
||||||
import { publishUserListStream } from '../../../../../stream';
|
import { publishUserListStream } from '../../../../../stream';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import UserList from '../../../../../models/user-list';
|
import UserList from '../../../../../models/user-list';
|
||||||
import User, { pack as packUser, isRemoteUser, fetchProxyAccount } from '../../../../../models/user';
|
import User, { pack as packUser, isRemoteUser, fetchProxyAccount } from '../../../../../models/user';
|
||||||
import { publishUserListStream } from '../../../../../stream';
|
import { publishUserListStream } from '../../../../../stream';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../../misc/cafy-id';
|
||||||
import UserList, { pack } from '../../../../../models/user-list';
|
import UserList, { pack } from '../../../../../models/user-list';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import getHostLower from '../../common/get-host-lower';
|
import getHostLower from '../../common/get-host-lower';
|
||||||
import Note, { packMany } from '../../../../models/note';
|
import Note, { packMany } from '../../../../models/note';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform, ObjectId } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform, ObjectId } from '../../../../misc/cafy-id';
|
||||||
import { getRelation } from '../../../../models/user';
|
import { getRelation } from '../../../../models/user';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import User from '../../../../models/user';
|
import User from '../../../../models/user';
|
||||||
import AbuseUserReport from '../../../../models/abuse-user-report';
|
import AbuseUserReport from '../../../../models/abuse-user-report';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import $ from 'cafy'; import ID, { transform, transformMany } from '../../../../misc/cafy-id';
|
import $ from 'cafy';
|
||||||
|
import ID, { transform, transformMany } from '../../../../misc/cafy-id';
|
||||||
import User, { pack, isRemoteUser } from '../../../../models/user';
|
import User, { pack, isRemoteUser } from '../../../../models/user';
|
||||||
import resolveRemoteUser from '../../../../remote/resolve-user';
|
import resolveRemoteUser from '../../../../remote/resolve-user';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
|
Loading…
Reference in New Issue
Block a user