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 'lib/banzai/filter/upload_link_filter.rb')
-rw-r--r--lib/banzai/filter/upload_link_filter.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/banzai/filter/upload_link_filter.rb b/lib/banzai/filter/upload_link_filter.rb
index ceb7547a85d..2572481c8fc 100644
--- a/lib/banzai/filter/upload_link_filter.rb
+++ b/lib/banzai/filter/upload_link_filter.rb
@@ -15,16 +15,10 @@ module Banzai
def call
return doc if context[:system_note]
- if Feature.enabled?(:optimize_linkable_attributes, project, default_enabled: :yaml)
- # We exclude processed upload links from the linkable attributes to
- # prevent further modifications by RepositoryLinkFilter
- linkable_attributes.reject! do |attr|
- process_link_to_upload_attr(attr)
- end
- else
- linkable_attributes.each do |attr|
- process_link_to_upload_attr(attr)
- end
+ # We exclude processed upload links from the linkable attributes to
+ # prevent further modifications by RepositoryLinkFilter
+ linkable_attributes.reject! do |attr|
+ process_link_to_upload_attr(attr)
end
doc