diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-05-05 16:47:51 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-05 16:47:51 +0900 |
| commit | ce4bd7e41a0e481955c00dfc880b3b1184905227 (patch) | |
| tree | 5a756b7530f94dcfe98ebe205b04ff061a4697a1 /src/api | |
| parent | chore(package): update swagger-jsdoc to version 1.9.4 (diff) | |
| parent | [Refactor] Fix indentation level (diff) | |
| download | misskey-ce4bd7e41a0e481955c00dfc880b3b1184905227.tar.gz misskey-ce4bd7e41a0e481955c00dfc880b3b1184905227.tar.bz2 misskey-ce4bd7e41a0e481955c00dfc880b3b1184905227.zip | |
Merge branch 'master' into greenkeeper/swagger-jsdoc-1.9.4
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 9f313bc208..26faee4713 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -45,8 +45,8 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { _id: mediaId, user_id: user._id }, { - _id: true - }); + _id: true + }); if (entity === null) { return rej('file not found'); @@ -79,10 +79,10 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { const latestPost = await Post.findOne({ user_id: user._id }, { - sort: { - _id: -1 - } - }); + sort: { + _id: -1 + } + }); // 直近と同じRepost対象かつ引用じゃなかったらエラー if (latestPost && |