diff options
| author | Henry Jameson <me@hjkos.com> | 2019-05-14 22:38:16 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-05-14 22:48:44 +0300 |
| commit | 543604fd2d107d3c6b7123e5713ac923eb76f23c (patch) | |
| tree | d981ba4a7877689593a312c83c9d993187dc11ca /src/services/api/api.service.js | |
| parent | 2322610b62c8593e8ca71a2a8ae7057d4c39b480 (diff) | |
removed unused masto api, added initial version of interactions timeline
Diffstat (limited to 'src/services/api/api.service.js')
| -rw-r--r-- | src/services/api/api.service.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index b7a602b8..75a001a4 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -1,7 +1,5 @@ /* eslint-env browser */ const LOGIN_URL = '/api/account/verify_credentials.json' -const ALL_FOLLOWING_URL = '/api/qvitter/allfollowing' -const MENTIONS_URL = '/api/statuses/mentions.json' const REGISTRATION_URL = '/api/account/register.json' const BG_UPDATE_URL = '/api/qvitter/update_background_image.json' const EXTERNAL_PROFILE_URL = '/api/externalprofile/show.json' @@ -308,13 +306,6 @@ const fetchFollowers = ({id, maxId, sinceId, limit = 20, credentials}) => { .then((data) => data.map(parseUser)) } -const fetchAllFollowing = ({username, credentials}) => { - const url = `${ALL_FOLLOWING_URL}/${username}.json` - return fetch(url, { headers: authHeaders(credentials) }) - .then((data) => data.json()) - .then((data) => data.map(parseUser)) -} - const fetchFollowRequests = ({credentials}) => { const url = FOLLOW_REQUESTS_URL return fetch(url, { headers: authHeaders(credentials) }) @@ -434,7 +425,6 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use const timelineUrls = { public: MASTODON_PUBLIC_TIMELINE, friends: MASTODON_USER_HOME_TIMELINE_URL, - mentions: MENTIONS_URL, dms: MASTODON_DIRECT_MESSAGES_TIMELINE_URL, notifications: MASTODON_USER_NOTIFICATIONS_URL, 'publicAndExternal': MASTODON_PUBLIC_TIMELINE, @@ -726,7 +716,6 @@ const apiService = { postStatus, deleteStatus, uploadMedia, - fetchAllFollowing, fetchMutes, muteUser, unmuteUser, |
