diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-02 08:21:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-02 08:21:30 +0900 |
| commit | 718060dc855e09f270b8e19c089ed3c3743665e0 (patch) | |
| tree | 334ea8c7dcd04153da311cf6073407f6f14eb423 /src/api/endpoints/posts/create.ts | |
| parent | wip (diff) | |
| download | sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.gz sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.bz2 sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.zip | |
wip
Diffstat (limited to 'src/api/endpoints/posts/create.ts')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index a1d05c67c6..0fa52221f9 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -12,7 +12,7 @@ import Mute from '../../models/mute'; import DriveFile from '../../models/drive-file'; import Watching from '../../models/post-watching'; import ChannelWatching from '../../models/channel-watching'; -import serialize from '../../serializers/post'; +import { pack } from '../../models/post'; import notify from '../../common/notify'; import watch from '../../common/watch-post'; import event, { pushSw, publishChannelStream } from '../../event'; @@ -224,7 +224,7 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => { }); // Serialize - const postObj = await serialize(post); + const postObj = await pack(post); // Reponse res({ |