diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-02-10 14:51:35 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-02-10 14:51:35 +0000 |
| commit | 17b6d8ddb8a9a1637fd88e017170b973b97381da (patch) | |
| tree | 195d8c95342696e753f0c11bec73f049fbbcdf9b /src/services/notifications_fetcher/notifications_fetcher.service.js | |
| parent | 6be6241767f13d5a46f2c5455281a03ae2a5e844 (diff) | |
| parent | ce68ef0138f43fed6617f197d46cc09ac68f9e31 (diff) | |
Merge branch 'move-type-notification' into 'develop'
Add setting for allow following move
Closes #732
See merge request pleroma/pleroma-fe!1054
Diffstat (limited to 'src/services/notifications_fetcher/notifications_fetcher.service.js')
| -rw-r--r-- | src/services/notifications_fetcher/notifications_fetcher.service.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js index 64499a1b..864e32f8 100644 --- a/src/services/notifications_fetcher/notifications_fetcher.service.js +++ b/src/services/notifications_fetcher/notifications_fetcher.service.js @@ -11,9 +11,12 @@ const fetchAndUpdate = ({ store, credentials, older = false }) => { const rootState = store.rootState || store.state const timelineData = rootState.statuses.notifications const hideMutedPosts = getters.mergedConfig.hideMutedPosts + const allowFollowingMove = rootState.users.currentUser.allow_following_move args['withMuted'] = !hideMutedPosts + args['withMove'] = !allowFollowingMove + args['timeline'] = 'notifications' if (older) { if (timelineData.minId !== Number.POSITIVE_INFINITY) { |
