aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/api/api.service.js3
-rw-r--r--src/services/notification_utils/notification_utils.js2
-rw-r--r--src/services/notifications_fetcher/notifications_fetcher.service.js4
3 files changed, 4 insertions, 5 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index e60010fe..27ea5199 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -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),
diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js
index dff97aa2..b338eb8b 100644
--- a/src/services/notification_utils/notification_utils.js
+++ b/src/services/notification_utils/notification_utils.js
@@ -93,7 +93,7 @@ export const prepareNotificationObject = (notification, i18n) => {
i18nString = 'follow_request'
break
case 'pleroma:report':
- i18nString = 'reported'
+ i18nString = 'submitted_report'
break
}
diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js
index 2da6d646..4ecb348e 100644
--- a/src/services/notifications_fetcher/notifications_fetcher.service.js
+++ b/src/services/notifications_fetcher/notifications_fetcher.service.js
@@ -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'