fix: strip markdown hard-break backslashes from webhook payloads (#13950)
This commit is contained in:
@@ -10,6 +10,6 @@ module PushDataHelper
|
||||
end
|
||||
|
||||
def webhook_data
|
||||
Conversations::EventDataPresenter.new(self).push_data
|
||||
Conversations::EventDataPresenter.new(self).webhook_data
|
||||
end
|
||||
end
|
||||
|
||||
@@ -170,6 +170,13 @@ class Message < ApplicationRecord
|
||||
data
|
||||
end
|
||||
|
||||
def webhook_push_event_data
|
||||
push_event_data.merge(
|
||||
content: Messages::WebhookContentNormalizer.normalize(content),
|
||||
processed_message_content: Messages::WebhookContentNormalizer.normalize(processed_message_content)
|
||||
)
|
||||
end
|
||||
|
||||
def webhook_data
|
||||
data = {
|
||||
account: account.webhook_data,
|
||||
|
||||
Reference in New Issue
Block a user