summaryrefslogtreecommitdiff
path: root/src/models/note.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-05-19 20:50:43 +0900
committerGitHub <noreply@github.com>2018-05-19 20:50:43 +0900
commite52246a5f0516f621f59e635b6bb53ae86a93dc6 (patch)
tree47903f815bf335f43d263e25355a2274197668cc /src/models/note.ts
parentNew translations ja.yml (Korean) (diff)
parent[wip] better mobile setting (diff)
downloadmisskey-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.ts7
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)