diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-31 22:14:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-31 22:14:12 +0900 |
| commit | 30a4e839a687bed7ed839e3c17f6781bb4b76499 (patch) | |
| tree | a5f4ad47279c7c1e2c78ffb5cd496695ea459fce /src/api/endpoints/posts/create.ts | |
| parent | wip (diff) | |
| download | sharkey-30a4e839a687bed7ed839e3c17f6781bb4b76499.tar.gz sharkey-30a4e839a687bed7ed839e3c17f6781bb4b76499.tar.bz2 sharkey-30a4e839a687bed7ed839e3c17f6781bb4b76499.zip | |
Fix indent
Diffstat (limited to 'src/api/endpoints/posts/create.ts')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 42a55f850e..e0a02fa4a0 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -186,11 +186,11 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => { repost: user.latest_post.repost_id ? user.latest_post.repost_id.toString() : null, media_ids: (user.latest_post.media_ids || []).map(id => id.toString()) }, { - text: text, - reply: inReplyToPost ? inReplyToPost._id.toString() : null, - repost: repost ? repost._id.toString() : null, - media_ids: (files || []).map(file => file._id.toString()) - })) { + text: text, + reply: inReplyToPost ? inReplyToPost._id.toString() : null, + repost: repost ? repost._id.toString() : null, + media_ids: (files || []).map(file => file._id.toString()) + })) { return rej('duplicate'); } } |