mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-07-16 11:26:36 +08:00
After those core changes we need additional translations and separate logic to handle assigned and unassigned webhooks https://github.com/discourse/discourse/pull/23070
7 lines
220 B
Ruby
7 lines
220 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:topic_voting_web_hook, from: :web_hook) do
|
|
after_build do |web_hook|
|
|
web_hook.web_hook_event_types = WebHookEventType.where(name: %w[topic_upvote topic_unvote])
|
|
end
|
|
end
|