# 如果备份中包含指向Discourse onebox的链接，则无法还原备份

**URL:** <https://meta.discourse.org/t/cant-restore-a-backup-if-it-includes-link-to-discourse-onebox/329071>\
**Category:** Bug\
**Created:** [2024年十月2日 19:41 UTC](https://meta.discourse.org/t/cant-restore-a-backup-if-it-includes-link-to-discourse-onebox/329071 "2024-10-02T19:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2024年十月2日 19:41 UTC](https://meta.discourse.org/t/cant-restore-a-backup-if-it-includes-link-to-discourse-onebox/329071/1 "2024-10-02T19:41:05Z")

</div>

如果您有一个本地取消设置的下载图片站点，并且它链接到一个 discourse 论坛，并且包含一个包含 `/uploads/default/original` 的图片的 onebox，那么您将无法恢复数据库。

> <https://github.com/discourse/discourse/blob/main/lib/file_store/to_s3_migration.rb#L78>

我通过在 oneboxed Discourse 链接前添加一个空格来解决此问题，这样它就会变成一个内联链接而不是一个 onebox。

不知道为什么他们关闭了下载图片。 . .

---

_[View the full topic](https://meta.discourse.org/t/cant-restore-a-backup-if-it-includes-link-to-discourse-onebox/329071)._
