diff options
| author | Henry Jameson <me@hjkos.com> | 2019-01-12 23:33:45 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-01-12 23:33:45 +0300 |
| commit | 039a4074006fb91ac9031b41b4e9af4a15766dfa (patch) | |
| tree | 83f9ed12f17b4b95dbc6610862db23085d782032 /src/services/api/api.service.js | |
| parent | 1fb9ceb59bf0dca5f755f5988f90bdd24a89dd53 (diff) | |
some initial work to make it possible to use "unregistered" timelines, i.e. not
reserving a timeline by name, instead just passing timeline object itself.
Diffstat (limited to 'src/services/api/api.service.js')
| -rw-r--r-- | src/services/api/api.service.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index 4ee95bd1..24b38dfd 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -41,6 +41,8 @@ const APPROVE_USER_URL = '/api/pleroma/friendships/approve' const DENY_USER_URL = '/api/pleroma/friendships/deny' const SUGGESTIONS_URL = '/api/v1/suggestions' +const MASTODON_USER_FAVORITES_TIMELINE_URL = '/api/v1/favourites' + import { each, map } from 'lodash' import 'whatwg-fetch' @@ -300,10 +302,11 @@ 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, + favorites: MASTODON_USER_FAVORITES_TIMELINE_URL, tag: TAG_TIMELINE_URL } - let url = timelineUrls[timeline] + let url = timelineUrls[timeline.type || timeline] let params = [] |
