Webhook 事件 `post_type`

也许这应该记录在这里:https://meta.discourse.org/t/configure-webhooks-that-trigger-on-discourse-events-to-integrate-with-external-services/49045。

你可以通过运行 Post.types 从 rails 控制台获取帖子类型。它返回

:regular=>1, :moderator_action=>2, :small_action=>3, :whisper=>4

网站上的任何常规帖子,其 post_type 字段都将设置为 1(regular)。

帖子类型 2(moderator_actions)用于版主在审核队列中处理标记时生成的帖子。我认为这是该帖子类型唯一的使用情况。

帖子类型 3(small_actions)用于在主题被打开、关闭等时自动生成的帖子。

帖子类型 4 用于悄悄话帖子。

1 个赞