aboutsummaryrefslogtreecommitdiff
path: root/src/services/api/api.service.js
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2020-02-04 04:37:29 +0900
committerkPherox <admin@mail.kr-kp.com>2020-02-04 04:54:36 +0900
commita06f3a7fbc40cd51df3c2d04406494cf60b0cf8a (patch)
tree7171b468904bd0aa790e965e66ebfca636ecab12 /src/services/api/api.service.js
parent9b7497a65957b3f1d3b9f920266fae9bdae11dd5 (diff)
Add `with_move` param for fetching notification
Diffstat (limited to 'src/services/api/api.service.js')
-rw-r--r--src/services/api/api.service.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index 11aa0675..b794fd58 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -495,7 +495,8 @@ const fetchTimeline = ({
until = false,
userId = false,
tag = false,
- withMuted = false
+ withMuted = false,
+ withMove = false
}) => {
const timelineUrls = {
public: MASTODON_PUBLIC_TIMELINE,
@@ -535,6 +536,9 @@ const fetchTimeline = ({
if (timeline === 'public' || timeline === 'publicAndExternal') {
params.push(['only_media', false])
}
+ if (timeline === 'notifications') {
+ params.push(['with_move', withMove])
+ }
params.push(['count', 20])
params.push(['with_muted', withMuted])