# Lokale onebox-afbeeldingen ophalen

**URL:** <https://meta.discourse.org/t/fetching-onebox-images-locally/172344>\
**Category:** Development\
**Created:** [5 december 2020 om 19:08 UTC](https://meta.discourse.org/t/fetching-onebox-images-locally/172344 "2020-12-05T19:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [5 december 2020 om 21:39 UTC](https://meta.discourse.org/t/fetching-onebox-images-locally/172344/4 "2020-12-05T21:39:25Z")

</div>

Some avenues to explore:

The Cooked Post Processor enqueues a job to do this, see:

> <https://github.com/discourse/discourse/blob/e98c7b15d6ce864f1b5e83b6881700eaa808bdd1/lib/cooked_post_processor.rb#L663>

The jobs code is here: [discourse/app/jobs/regular/pull\_hotlinked\_images.rb at e98c7b15d6ce864f1b5e83b6881700eaa808bdd1 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/e98c7b15d6ce864f1b5e83b6881700eaa808bdd1/app/jobs/regular/pull_hotlinked_images.rb)

If you’ve managed to return the hotlinked images to the post, the images meet the criteria and settings ensure external images are uploaded, this should work.

![image](https://global.discourse-cdn.com/meta/original/3X/6/4/64ee7aa37153c77509a67839ecc7a836cad74f16.png)

Criteria here: [discourse/lib/cooked\_post\_processor.rb at e98c7b15d6ce864f1b5e83b6881700eaa808bdd1 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/e98c7b15d6ce864f1b5e83b6881700eaa808bdd1/lib/cooked_post_processor.rb#L201)

If this is not working yet but you are successfully showing the external images in the onebox, my hunch is the images don’t meet the criteria to be uploaded.

---

_[View the full topic](https://meta.discourse.org/t/fetching-onebox-images-locally/172344)._
