aboutsummaryrefslogtreecommitdiff
path: root/src/services/api/api.service.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-01-17 21:46:03 +0300
committerHenry Jameson <me@hjkos.com>2019-01-17 21:46:03 +0300
commitcab87744c830e4411ec20c1dcb2d454d657219bc (patch)
treeb9cc4054fda22ffdab706103f29bc404ef66d3e6 /src/services/api/api.service.js
parent0f8baff5a3cd865ca5e2bb420c44d7409a8dec9c (diff)
Revert "some initial work to make it possible to use "unregistered" timelines, i.e. not"
and some stuff to make favorites still work This reverts commit 039a4074006fb91ac9031b41b4e9af4a15766dfa.
Diffstat (limited to 'src/services/api/api.service.js')
-rw-r--r--src/services/api/api.service.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index 14a526ef..0e267276 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -327,11 +327,10 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
favorites: MASTODON_USER_FAVORITES_TIMELINE_URL,
tag: TAG_TIMELINE_URL
}
- const type = timeline.type || timeline
- const isNotifications = type === 'notifications'
+ const isNotifications = timeline === 'notifications'
const params = []
- let url = timelineUrls[type]
+ let url = timelineUrls[timeline]
if (since) {
params.push(['since_id', since])