FIX: Do not log 'personal message view' when sending webhook (#21375)

Similar to the issue resolved by 3b55de90e5
This commit is contained in:
David Taylor
2023-05-04 10:15:31 +01:00
committed by GitHub
parent c8232792eb
commit 05cd39d4d9
2 changed files with 24 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class WebHook < ActiveRecord::Base
if active_web_hooks("topic").exists? && topic.present?
payload ||=
begin
topic_view = TopicView.new(topic.id, Discourse.system_user)
topic_view = TopicView.new(topic.id, Discourse.system_user, skip_staff_action: true)
WebHook.generate_payload(:topic, topic_view, WebHookTopicViewSerializer)
end