Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/issuable_actions.rb')
-rw-r--r--app/controllers/concerns/issuable_actions.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/controllers/concerns/issuable_actions.rb b/app/controllers/concerns/issuable_actions.rb
index 1b49cffd408..28e1056092d 100644
--- a/app/controllers/concerns/issuable_actions.rb
+++ b/app/controllers/concerns/issuable_actions.rb
@@ -174,22 +174,11 @@ module IssuableActions
if Gitlab::Database.read_only? || params[:persist_filter] == 'false'
notes_filter_param || current_user&.notes_filter_for(issuable)
else
- notes_filter = current_user&.set_notes_filter(notes_filter_param, issuable) || notes_filter_param
-
- # We need to invalidate the cache for polling notes otherwise it will
- # ignore the filter.
- # The ideal would be to invalidate the cache for each user.
- issuable.expire_note_etag_cache if notes_filter_updated?
-
- notes_filter
+ current_user&.set_notes_filter(notes_filter_param, issuable) || notes_filter_param
end
end
end
- def notes_filter_updated?
- current_user&.user_preference&.previous_changes&.any?
- end
-
def discussion_cache_context
[current_user&.cache_key, project.team.human_max_access(current_user&.id), 'v2'].join(':')
end