mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:51:07 +08:00
FIX: Do not log 'personal message view' when sending webhook (#21375)
Similar to the issue resolved by 3b55de90e5
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user