diff options
| author | Ilja <ilja@ilja.space> | 2022-02-26 01:53:01 +0100 |
|---|---|---|
| committer | Ilja <ilja@ilja.space> | 2022-02-26 01:53:01 +0100 |
| commit | 819b76026101ddc0363118f240049a0019ebb4d6 (patch) | |
| tree | e75febbf83ef90fd2371a9be0f864989db981203 /src/services/notifications_fetcher | |
| parent | 52c22e863e66cd165adb100af42b88f5bbb116f0 (diff) | |
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
Diffstat (limited to 'src/services/notifications_fetcher')
| -rw-r--r-- | src/services/notifications_fetcher/notifications_fetcher.service.js | 4 |
1 files changed, 1 insertions, 3 deletions
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' |
