A platform for community discussion. Free, open, simple.
Partially revert https://github.com/discourse/discourse/commit/531baec5b585a7a82365a5733e8be5298fa1019d.
Guo Xiang Tanb9dfb0ba10cd
diff --git a/spec/fabricators/web_hook_fabricator.rb b/spec/fabricators/web_hook_fabricator.rbindex 9f9ac23a942..c7632cd2d07 100644--- a/spec/fabricators/web_hook_fabricator.rb+++ b/spec/fabricators/web_hook_fabricator.rb@@ -29,6 +29,14 @@ Fabricator(:topic_web_hook, from: :web_hook) doendend+Fabricator(:post_web_hook, from: :web_hook) do+ transient topic_hook: WebHookEventType.find_by(name: 'post')++ after_build do |web_hook, transients|+ web_hook.web_hook_event_types = [transients[:post_hook]]+ end+end+Fabricator(:user_web_hook, from: :web_hook) dotransient user_hook: WebHookEventType.find_by(name: 'user')