# topic-thumbnails を使用すると、外部埋め込みのサムネイルが欠落しています

**URL:** <https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452>\
**Category:** Development\
**Tags:** pr-welcome\
**Created:** [2023 年 2 月 17 日午前 8:53 UTC](https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452 "2023-02-17T08:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kluvin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kluvin/32/289447_2.png) [@kluvin](https://meta.discourse.org/u/kluvin)\
**Post date:** [2023 年 3 月 30 日午後 12:53 UTC](https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452/10 "2023-03-30T12:53:17Z")

</div>

こんにちは、Penar、返信ありがとうございます。

`to_html` メソッドとして以下を使用すると、次の出力が得られます。

```html
  <div class="everviz-box">
   #{get_oembed.html}
   <a class="hidden" href="https://app.everviz.com/thumbnails/#{match[:uuid]}.png"></a>
  </div>

```

```html
  <div class="...">
    <iframe
      ...
    ></iframe>
    <a class="hidden" href="https://app.everviz.com/thumbnails/[...].png" rel="nofollow ugc noopener"></a>
  </div>

```

画像を直接リンクすると、次のようになります。

```html
<a href="https://app.everviz.com/thumbnails/[...].png" target="_blank" rel="noopener" class="onebox">
   <img src="//localhost:3000/uploads/default/original/1X/[...].png"
        style="aspect-ratio: 690 / 459;" loading="lazy">
</a>

```

これは、別の onebox エンジンのコンテキスト外で画像がリンクされている場合にのみ、`image_onebox.rb` エンジンが入力に対して実行されているように見えます。

この結果、提案された手法は現時点では機能せず、画像をリンクして非表示にするか、Discourse を変更する必要があります。

この場合、画像を追加して非表示にするのは受け入れられる PR ですか？それとも、もっと複雑なことをする必要がありますか？

---

_[View the full topic](https://meta.discourse.org/t/thumbnails-are-missing-for-our-external-embeds-when-using-topic-thumbnails/255452)._
