From cab87744c830e4411ec20c1dcb2d454d657219bc Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 17 Jan 2019 21:46:03 +0300 Subject: 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. --- src/services/api/api.service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/services/api/api.service.js') 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]) -- cgit v1.2.3-70-g09d2