2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class BroadcastMessagePipeline < DescriptionPipeline
|
|
|
|
def self.filters
|
2016-06-02 11:05:42 +05:30
|
|
|
@filters ||= FilterArray[
|
2016-04-02 18:10:28 +05:30
|
|
|
Filter::MarkdownFilter,
|
2020-01-01 13:55:28 +05:30
|
|
|
Filter::BroadcastMessageSanitizationFilter,
|
2016-04-02 18:10:28 +05:30
|
|
|
Filter::EmojiFilter,
|
2018-03-17 18:26:18 +05:30
|
|
|
Filter::ColorFilter,
|
2016-04-02 18:10:28 +05:30
|
|
|
Filter::AutolinkFilter,
|
|
|
|
Filter::ExternalLinkFilter
|
|
|
|
]
|
|
|
|
end
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
super(context).merge(
|
|
|
|
no_sourcepos: true
|
|
|
|
)
|
|
|
|
end
|
2016-04-02 18:10:28 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|