forked from AkkomaGang/akkoma-fe
Merge branch 'fix/boosts-favs-private-instance' into 'develop'
Send credentials for favourited_by and reblogged_by API endpoints Closes #795 See merge request pleroma/pleroma-fe!1086
This commit is contained in:
commit
d5457c323a
1 changed files with 12 additions and 4 deletions
|
@ -880,12 +880,20 @@ const fetchPoll = ({ pollId, credentials }) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchFavoritedByUsers = ({ id }) => {
|
const fetchFavoritedByUsers = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_STATUS_FAVORITEDBY_URL(id) }).then((users) => users.map(parseUser))
|
return promisedRequest({
|
||||||
|
url: MASTODON_STATUS_FAVORITEDBY_URL(id),
|
||||||
|
method: 'GET',
|
||||||
|
credentials
|
||||||
|
}).then((users) => users.map(parseUser))
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchRebloggedByUsers = ({ id }) => {
|
const fetchRebloggedByUsers = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_STATUS_REBLOGGEDBY_URL(id) }).then((users) => users.map(parseUser))
|
return promisedRequest({
|
||||||
|
url: MASTODON_STATUS_REBLOGGEDBY_URL(id),
|
||||||
|
method: 'GET',
|
||||||
|
credentials
|
||||||
|
}).then((users) => users.map(parseUser))
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchEmojiReactions = ({ id, credentials }) => {
|
const fetchEmojiReactions = ({ id, credentials }) => {
|
||||||
|
|
Loading…
Reference in a new issue