diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 06:06:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 06:06:29 +0300 |
commit | d1002a9e0dfd63273564b060e6ae62ccc0578200 (patch) | |
tree | 2494b73f91c5729918d42ce7917cbaf1c3c45820 /lib | |
parent | 869182cab0867d582e469f329a6f58d13f877683 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/relative_link_filter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/relative_link_filter.rb b/lib/banzai/filter/relative_link_filter.rb index 8799b0b9a80..df181406591 100644 --- a/lib/banzai/filter/relative_link_filter.rb +++ b/lib/banzai/filter/relative_link_filter.rb @@ -21,6 +21,7 @@ module Banzai return doc if context[:system_note] clear_memoization(:linkable_files) + clear_memoization(:linkable_attributes) load_uri_types @@ -35,10 +36,9 @@ module Banzai def load_uri_types return unless linkable_files? + return unless linkable_attributes.present? return {} unless repository - clear_memoization(:linkable_attributes) - @uri_types = request_path.present? ? get_uri_types([request_path]) : {} paths = linkable_attributes.flat_map do |attr| |