# Using onebox images for topic thumbnails

**URL:** https://meta.discourse.org/t/using-onebox-images-for-topic-thumbnails/165713
**Category:** Development
**Created:** [September 29, 2020, 8:41am UTC](https://meta.discourse.org/t/using-onebox-images-for-topic-thumbnails/165713 "2020-09-29T08:41:16Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 29, 2020, 9:42am UTC](https://meta.discourse.org/t/using-onebox-images-for-topic-thumbnails/165713/4 "2020-09-29T09:42:06Z")

</div>

I am certainly open to improvements here. I know @merefield is also interested in this logic. The change would be needed in core, rather than a plugin, so I’ll split this out into its own topic.

Here is the existing logic:

> <https://github.com/discourse/discourse/blob/main/lib/cooked_post_processor.rb#L201-L214>

Maybe we could add a `.no-thumbnail` class to certain kinds of onebox (e.g. GitHub), and then teach Discourse to only ignore those, while keeping other onebox images.

Going to put pr-welcome on this, but be sure to lay out a plan in this topic before doing any substantial work.

---

_[View the full topic](https://meta.discourse.org/t/using-onebox-images-for-topic-thumbnails/165713)._
