diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-16 14:34:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-16 14:34:11 +0900 |
| commit | 9f02d2d1b8f57e0adaab1f8068982606b0d1e71f (patch) | |
| tree | 0f863a40063ab0bd8c15576adb7953c9596de3da /src/api/endpoints/i | |
| parent | Merge pull request #173 from syuilo/greenkeeper/@types/request-0.0.40 (diff) | |
| download | misskey-9f02d2d1b8f57e0adaab1f8068982606b0d1e71f.tar.gz misskey-9f02d2d1b8f57e0adaab1f8068982606b0d1e71f.tar.bz2 misskey-9f02d2d1b8f57e0adaab1f8068982606b0d1e71f.zip | |
[API] Fix bugs
Diffstat (limited to 'src/api/endpoints/i')
| -rw-r--r-- | src/api/endpoints/i/notifications.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/endpoints/i/notifications.js b/src/api/endpoints/i/notifications.js index 02a2fb1798..c91f3468e7 100644 --- a/src/api/endpoints/i/notifications.js +++ b/src/api/endpoints/i/notifications.js @@ -19,14 +19,12 @@ module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'following' parameter - const following = params.following === 'true'; + const following = params.following; // Get 'mark_as_read' parameter let markAsRead = params.mark_as_read; if (markAsRead == null) { markAsRead = true; - } else { - markAsRead = markAsRead === 'true'; } // Get 'type' parameter |