diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-05-19 20:50:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-19 20:50:43 +0900 |
| commit | e52246a5f0516f621f59e635b6bb53ae86a93dc6 (patch) | |
| tree | 47903f815bf335f43d263e25355a2274197668cc /src/models/note.ts | |
| parent | New translations ja.yml (Korean) (diff) | |
| parent | [wip] better mobile setting (diff) | |
| download | misskey-e52246a5f0516f621f59e635b6bb53ae86a93dc6.tar.gz misskey-e52246a5f0516f621f59e635b6bb53ae86a93dc6.tar.bz2 misskey-e52246a5f0516f621f59e635b6bb53ae86a93dc6.zip | |
Merge branch 'master' into l10n_master
Diffstat (limited to 'src/models/note.ts')
| -rw-r--r-- | src/models/note.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index f42bb2a49d..5070923363 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -4,7 +4,6 @@ import rap from '@prezzemolo/rap'; import db from '../db/mongodb'; import { IUser, pack as packUser } from './user'; import { pack as packApp } from './app'; -import { pack as packChannel } from './channel'; import PollVote, { deletePollVote } from './poll-vote'; import Reaction, { deleteNoteReaction } from './note-reaction'; import { pack as packFile } from './drive-file'; @@ -29,7 +28,6 @@ export function isValidCw(text: string): boolean { export type INote = { _id: mongo.ObjectID; - channelId: mongo.ObjectID; createdAt: Date; deletedAt: Date; mediaIds: mongo.ObjectID[]; @@ -258,11 +256,6 @@ export const pack = async ( _note.app = packApp(_note.appId); } - // Populate channel - if (_note.channelId) { - _note.channel = packChannel(_note.channelId); - } - // Populate media _note.media = hide ? [] : Promise.all(_note.mediaIds.map(fileId => packFile(fileId) |