mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
DEV: Approved Post Webhook Event Category Update (#28725)
'Post approved by category experts' is moved to the post category
This commit is contained in:
parent
4f21a93a79
commit
93564bfa7d
@ -40,6 +40,7 @@ class WebHook < ActiveRecord::Base
|
||||
WebHookEventType::TYPES[:post_edited],
|
||||
WebHookEventType::TYPES[:post_destroyed],
|
||||
WebHookEventType::TYPES[:post_recovered],
|
||||
WebHookEventType::TYPES[:category_experts_approved],
|
||||
],
|
||||
)
|
||||
end
|
||||
|
@ -17,7 +17,6 @@ class WebHookEventType < ActiveRecord::Base
|
||||
USER_PROMOTED = 16
|
||||
TOPIC_VOTING = 17
|
||||
CHAT_MESSAGE = 18
|
||||
CATEGORY_EXPERTS = 19
|
||||
|
||||
enum group: {
|
||||
topic: 0,
|
||||
@ -36,7 +35,6 @@ class WebHookEventType < ActiveRecord::Base
|
||||
user_promoted: 13,
|
||||
voting: 14,
|
||||
chat: 15,
|
||||
category_experts: 16,
|
||||
},
|
||||
_scopes: false
|
||||
|
||||
|
@ -5409,6 +5409,7 @@ en:
|
||||
post_edited: "Post is updated"
|
||||
post_destroyed: "Post is deleted"
|
||||
post_recovered: "Post is recovered"
|
||||
category_experts_approved: "Post is approved by category experts"
|
||||
group_event:
|
||||
group_name: "Group Events"
|
||||
group_created: "Group is created"
|
||||
|
@ -233,5 +233,5 @@ end
|
||||
WebHookEventType.seed do |b|
|
||||
b.id = WebHookEventType::TYPES[:category_experts_approved]
|
||||
b.name = "category_experts_approved"
|
||||
b.group = WebHookEventType.groups[:category_experts]
|
||||
b.group = WebHookEventType.groups[:post]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user