Skip to content
Snippets Groups Projects
Commit e74e7257 authored by lain's avatar lain
Browse files

Merge branch 'fix/authenticated-remote-profile-fetching' into 'develop'

Send credentials when fetching remote profile.

See merge request pleroma/pleroma-fe!125
parents 9fedcab9 784eb842
Branches
No related tags found
No related merge requests found
......@@ -160,9 +160,10 @@ const authHeaders = (user) => {
}
}
const externalProfile = (profileUrl) => {
const externalProfile = ({profileUrl, credentials}) => {
let url = `${EXTERNAL_PROFILE_URL}?profileurl=${profileUrl}`
return fetch(url, {
headers: authHeaders(credentials),
method: 'GET'
}).then((data) => data.json())
}
......
......@@ -46,7 +46,7 @@ const backendInteractorService = (credentials) => {
const updateBanner = ({params}) => apiService.updateBanner({credentials, params})
const updateProfile = ({params}) => apiService.updateProfile({credentials, params})
const externalProfile = (profileUrl) => apiService.externalProfile(profileUrl)
const externalProfile = (profileUrl) => apiService.externalProfile({profileUrl, credentials})
const backendInteractorServiceInstance = {
fetchStatus,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment