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