# Сломанные изображения при отключённой опции 'embed truncate'

**URL:** https://meta.discourse.org/t/broken-images-with-embed-truncate-disabled/285302
**Category:** Support
**Tags:** rss-polling
**Created:** [14.Февраль.2022 00:35:22 UTC](https://meta.discourse.org/t/broken-images-with-embed-truncate-disabled/285302 "2022-02-14T00:35:22Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [25.Февраль.2022 18:17:05 UTC](https://meta.discourse.org/t/broken-images-with-embed-truncate-disabled/285302/11 "2022-02-25T18:17:05Z")

</div>

@f1r4s и @craigconstantine, это вызвано ошибкой, которую лучше всего описано здесь:

> [@Markdown rendering issue with image surrounded with HTML](https://meta.discourse.org/t/markdown-rendering-issue-with-image-surrounded-with-html/152801?u=falco):
>
> Related to [Thumbnail generation & markdown rendering issue](https://meta.discourse.org/t/thumbnail-generation-markdown-rendering-issue/152701) When discourse downloads and replaces an image HTML with its markdown syntax – in our context, this results as: [...]\<a href="\<link\_here\>" target="\_blank"\>![|150x150](upload://l0iarnA6SPVAyJN5l7pnQxZnPvE.jpeg)\</a\>[...] Discourse is unable to render the image play_button Image To fix the issue, you need at least an empty line above: [...]\<a href="\<link\_here\>" target="\_blank"\> ![|150x150](upload://l0iarnA6SPVAyJN5l7pnQxZnPvE.jpeg)\</a\>[...]play_button Im…

Наш обходной путь задокументирован здесь:

> [@Fix broken images for posts created by the WP Discourse and RSS plugins](https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773):
>
> There is a case where images published to Discourse through the [WP Discourse](https://github.com/discourse/wp-discourse) and RSS plugins can be broken. This can happen when the full post content is published to Discourse with the [WP Discourse](https://github.com/discourse/wp-discourse) plugin and the WordPress Classic editor is used for publishing the post. It can also happen with posts pulled to Discourse with the [RSS Polling](https://github.com/discourse/discourse-rss-polling) polling when the Truncate the embedded posts Embedding setting is not enabled. The problem happens when Discourse attempts to download images that have been…

Например, @f1r4s, добавление `https://reconshell.com/wp-content/uploads/` в настройку сайта `disabled image download domains` оставит пост в виде:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/b/9b272964c792d5f813ad87cbbe638b7a4f066845.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/broken-images-with-embed-truncate-disabled/285302)._
