diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-09-03 19:59:28 +0300 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-09-03 19:59:28 +0300 |
| commit | 457290e81ec9a37bf848f5d166fc77bf487e834d (patch) | |
| tree | 804b9e6bd33fb2c630d7e5dd7a870e2db193c7eb /src/services/api/api.service.js | |
| parent | 49159e6db354acb79d64860bd6fcfdf496ac7336 (diff) | |
Replace `/api/externalprofile/show.json` with a MastoAPI equialent
`/api/v1/accounts/:id` supports remote nicknames since pleroma!1622
Diffstat (limited to 'src/services/api/api.service.js')
| -rw-r--r-- | src/services/api/api.service.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index 4cf41e61..887d7d7a 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -4,7 +4,6 @@ import 'whatwg-fetch' import { RegistrationError, StatusCodeError } from '../errors/errors' /* eslint-env browser */ -const EXTERNAL_PROFILE_URL = '/api/externalprofile/show.json' const QVITTER_USER_NOTIFICATIONS_READ_URL = '/api/qvitter/statuses/notifications/read.json' const BLOCKS_IMPORT_URL = '/api/pleroma/blocks_import' const FOLLOW_IMPORT_URL = '/api/pleroma/follow_import' @@ -220,14 +219,6 @@ const authHeaders = (accessToken) => { } } -const externalProfile = ({ profileUrl, credentials }) => { - let url = `${EXTERNAL_PROFILE_URL}?profileurl=${profileUrl}` - return fetch(url, { - headers: authHeaders(credentials), - method: 'GET' - }).then((data) => data.json()) -} - const followUser = ({ id, credentials }) => { let url = MASTODON_FOLLOW_URL(id) return fetch(url, { @@ -966,7 +957,6 @@ const apiService = { updateBg, updateProfile, updateBanner, - externalProfile, importBlocks, importFollows, deleteAccount, |
