aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-01-24 10:47:49 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2019-01-26 13:49:24 +0000
commitdbe0205a9cc63cd3ecb5e1f754ebf55c27bbca3c (patch)
treee176a4e965373cfefff0267f9b8a10983968a6c7 /src
parent8197c77f75929aad557c98a5f698159b1a6d0c90 (diff)
api service: add the ability to fetch a media-only timeline
Diffstat (limited to 'src')
-rw-r--r--src/services/api/api.service.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index 776d8dae..5b0d8650 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -325,6 +325,7 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
notifications: QVITTER_USER_NOTIFICATIONS_URL,
'publicAndExternal': PUBLIC_AND_EXTERNAL_TIMELINE_URL,
user: QVITTER_USER_TIMELINE_URL,
+ media: QVITTER_USER_TIMELINE_URL,
favorites: MASTODON_USER_FAVORITES_TIMELINE_URL,
tag: TAG_TIMELINE_URL
}
@@ -345,6 +346,9 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
if (tag) {
url += `/${tag}.json`
}
+ if (timeline === 'media') {
+ params.push(['only_media', 1])
+ }
params.push(['count', 20])