Class: Banzai::Filter::UploadLinkFilter
- Inherits:
-
BaseRelativeLinkFilter
- Object
- HTML::Pipeline::Filter
- BaseRelativeLinkFilter
- Banzai::Filter::UploadLinkFilter
- Includes:
- Concerns::PipelineTimingCheck
- Defined in:
- lib/banzai/filter/upload_link_filter.rb
Overview
HTML filter that “fixes” links to uploads.
Context options:
:group
:only_path
:project
:system_note
Constant Summary
Constants included from Concerns::PipelineTimingCheck
Concerns::PipelineTimingCheck::MAX_PIPELINE_SECONDS
Constants inherited from BaseRelativeLinkFilter
BaseRelativeLinkFilter::CSS, BaseRelativeLinkFilter::XPATH
Instance Method Summary collapse
Methods included from Concerns::PipelineTimingCheck
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/banzai/filter/upload_link_filter.rb', line 17 def call return doc if context[:system_note] # 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 end |