2018-10-06 23:10:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-04 04:01:04 +00:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class BroadcastMessagePipeline < DescriptionPipeline
|
|
|
|
def self.filters
|
2016-03-01 20:54:35 +00:00
|
|
|
@filters ||= FilterArray[
|
2016-02-04 04:01:04 +00:00
|
|
|
Filter::MarkdownFilter,
|
2019-12-16 18:08:22 +00:00
|
|
|
Filter::BroadcastMessageSanitizationFilter,
|
2016-02-04 04:01:04 +00:00
|
|
|
|
|
|
|
Filter::EmojiFilter,
|
2017-12-20 11:39:40 +00:00
|
|
|
Filter::ColorFilter,
|
2016-02-04 04:01:04 +00:00
|
|
|
Filter::AutolinkFilter,
|
|
|
|
Filter::ExternalLinkFilter
|
|
|
|
]
|
|
|
|
end
|
2019-01-12 00:31:00 +00:00
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
super(context).merge(
|
|
|
|
no_sourcepos: true
|
|
|
|
)
|
|
|
|
end
|
2016-02-04 04:01:04 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|