Fix up and code review
* Check if it works properly
* Notifs are shown as BE returns them
* The Interaction view has Reports, but only when you're mod or admin
* Do some extra translations
* Fix some console spam
This commit is contained in:
parent
52c22e863e
commit
819b760261
7 changed files with 22 additions and 10 deletions
|
|
@ -1270,7 +1270,8 @@ const deleteChatMessage = ({ chatId, messageId, credentials }) => {
|
|||
}
|
||||
|
||||
const setReportState = ({ id, state, credentials }) => {
|
||||
// Can't use promisedRequest because on OK this does not return json
|
||||
// TODO: Can't use promisedRequest because on OK this does not return json
|
||||
// See https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1322
|
||||
return fetch(PLEROMA_ADMIN_REPORTS, {
|
||||
headers: {
|
||||
...authHeaders(credentials),
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export const prepareNotificationObject = (notification, i18n) => {
|
|||
i18nString = 'follow_request'
|
||||
break
|
||||
case 'pleroma:report':
|
||||
i18nString = 'reported'
|
||||
i18nString = 'submitted_report'
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@ const fetchAndUpdate = ({ store, credentials, older = false }) => {
|
|||
const timelineData = rootState.statuses.notifications
|
||||
const hideMutedPosts = getters.mergedConfig.hideMutedPosts
|
||||
|
||||
if (rootState.users.currentUser.role === 'admin') {
|
||||
args['includeTypes'] = mastoApiNotificationTypes
|
||||
}
|
||||
args['includeTypes'] = mastoApiNotificationTypes
|
||||
args['withMuted'] = !hideMutedPosts
|
||||
|
||||
args['timeline'] = 'notifications'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue