漏洞报告:Discourse 自动化中的“自动标签话题”——链接检测无法工作,Onebox 触发图片

您好,

这让我感到惊讶,因为我们有一个明确的测试用例:

it "fires the trigger when post has a link" do
  list =
    capture_contexts do
      PostCreator.create(
        user,
        raw: "Check out this [link](https://example.com)",
        topic_id: topic.id,
      )
    end

  expect(list.length).to eq(1)
  expect(list[0]["kind"]).to eq("post_created_edited")
end

您能否提供一张您正在尝试的整个自动化的截图,以及未触发的帖子的原始内容?