fetch reblogged users
This commit is contained in:
parent
2d339cd3b8
commit
85457fc917
6 changed files with 50 additions and 1 deletions
|
@ -50,6 +50,7 @@ const MASTODON_UNMUTE_USER_URL = id => `/api/v1/accounts/${id}/unmute`
|
|||
const MASTODON_POST_STATUS_URL = '/api/v1/statuses'
|
||||
const MASTODON_MEDIA_UPLOAD_URL = '/api/v1/media'
|
||||
const MASTODON_STATUS_FAVOURITEDBY_URL = id => `/api/v1/statuses/${id}/favourited_by`
|
||||
const MASTODON_STATUS_REBLOGGEDBY_URL = id => `/api/v1/statuses/${id}/reblogged_by`
|
||||
|
||||
import { each, map } from 'lodash'
|
||||
import { parseStatus, parseUser, parseNotification, parseAttachment } from '../entity_normalizer/entity_normalizer.service.js'
|
||||
|
@ -797,7 +798,9 @@ const apiService = {
|
|||
approveUser,
|
||||
denyUser,
|
||||
suggestions,
|
||||
markNotificationsAsSeen
|
||||
markNotificationsAsSeen,
|
||||
fetchFavouritedByUsers,
|
||||
fetchRebloggedByUsers
|
||||
}
|
||||
|
||||
export default apiService
|
||||
|
|
|
@ -113,6 +113,8 @@ const backendInteractorService = (credentials) => {
|
|||
const changePassword = ({password, newPassword, newPasswordConfirmation}) => apiService.changePassword({credentials, password, newPassword, newPasswordConfirmation})
|
||||
|
||||
const fetchFavouritedByUsers = ({id}) => apiService.fetchFavouritedByUsers({id})
|
||||
const fetchRebloggedByUsers = ({id}) => apiService.fetchRebloggedByUsers({id})
|
||||
|
||||
const backendInteractorServiceInstance = {
|
||||
fetchStatus,
|
||||
fetchConversation,
|
||||
|
@ -155,6 +157,7 @@ const backendInteractorService = (credentials) => {
|
|||
approveUser,
|
||||
denyUser,
|
||||
fetchFavouritedByUsers,
|
||||
fetchRebloggedByUsers
|
||||
}
|
||||
|
||||
return backendInteractorServiceInstance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue