バックアップ下書き投稿が post_created webhook をトリガーする

自動作成された下書きバックアップ投稿が post_created および post_edited Webhook イベントをトリガーするのは意図した動作でしょうか?

以下に、確認したペイロードの例を示します。これは開発サイトでテストしているもので、設定ミスがある可能性もあります。

下書き投稿 post_created ペイロード
// Headers
Request URL: http://localhost:5173/api/discoursePostEvent
Request method: POST
Accept: */*
Connection: close
Content-Length: 1366
Content-Type: application/json
Host: localhost
User-Agent: Discourse/3.3.0.beta2-dev
X-Discourse-Instance: http://127.0.0.1:4200
X-Discourse-Event-Id: 3001
X-Discourse-Event-Type: post
X-Discourse-Event: post_created
X-Discourse-Event-Signature: sha256=ba23c86e4f40cc1c05442796227a53eb34a3498750447eeb5ce4e8e9f85ca13a

// Payload
{
  "post": {
    "id": 1070,
    "username": "scossar",
    "avatar_template": "/user_avatar/127.0.0.1/scossar/{size}/57_2.png",
    "created_at": "2024-05-21T17:48:15.497Z",
    "cooked": "<pre><code class=\"lang-plaintext\">Triggering the post event webhook.\n</code></pre>\n<pre><code class=\"lang-plaintext\">seq: 0\nkey: topic_536\n</code></pre>",
    "post_number": 18,
    "post_type": 1,
    "updated_at": "2024-05-21T17:48:15.497Z",
    "reply_count": 0,
    "reply_to_post_number": null,
    "quote_count": 0,
    "incoming_link_count": 0,
    "reads": 0,
    "score": 0,
    "topic_id": 474,
    "topic_slug": "backup-drafts-from-ongoing-topics",
    "topic_title": "Backup Drafts from ongoing topics",
    "category_id": null,
    "primary_group_name": null,
    "flair_name": null,
    "flair_group_id": null,
    "version": 1,
    "user_title": null,
    "bookmarked": false,
    "raw": "    Triggering the post event webhook.\n\n```text\nseq: 0\nkey: topic_536\n```",
    "moderator": false,
    "admin": true,
    "staff": true,
    "user_id": 7,
    "hidden": false,
    "trust_level": 1,
    "deleted_at": null,
    "user_deleted": false,
    "edit_reason": null,
    "wiki": false,
    "reviewable_id": null,
    "reviewable_score_count": 0,
    "reviewable_score_pending_count": 0,
    "event": null,
    "reactions": [],
    "current_user_reaction": null,
    "reaction_users_count": 0,
    "current_user_used_main_reaction": false,
    "can_accept_answer": true,
    "can_unaccept_answer": false,
    "accepted_answer": false,
    "topic_accepted_answer": false,
    "topic_posts_count": 18,
    "topic_filtered_posts_count": 18,
    "topic_archetype": "private_message"
  }
}

Webhook受信コードでリクエストを除外することは可能ですが、ほとんどのユースケースでは不要に思われます。

関連して、トピックおよび投稿イベントの Webhook を通常のトピックに限定できれば素晴らしいです。

通常のトピックに関連するすべてのイベントの Webhook を受信し、DM の Webhook を受信したくない私のケースでは、両方の問題の解決策は、サイトのすべてのカテゴリを WebHook の「トリガーされたカテゴリ」入力に追加することになるでしょう。

「いいね!」 1