账户删除请求

它不影响设置,但我可以在翻译字段中重现此问题:

需要明确的是,这并非仅限于“Account Deletion Request”组件。我测试过的其他组件,例如“Discourse TOC”和“Kansan”,在其翻译字段中也存在同样的问题。

7 个赞

非常有帮助,谢谢 @Stephen,我有一个关于主题翻译的 PR:FIX: Theme translations resetting on save by pmusaraj · Pull Request #22072 · discourse/discourse · GitHub

10 个赞

你好 :wave:

我已经合并了一个更新,允许在模态描述中使用 HTML。更新组件后,您可以使用 Lilly 建议的方法进行换行。

您的文本在 HTML 中看起来是这样的:

When you send us an account anonymization request, we'll remove all personal data from your account, while retaining your posts. This means:
<br>
<ul>
  <li>You will no longer be able to log in as this specific account.</li>
  <br>
  <li>A new username will be randomly assigned to the account such as anon123456. This new username will be applied to all your posts in the system, and we will update all @mentions and quotes too.</li>
  <li>The new username is not applied to: deleted posts, post revisions when the current post doesn't mention or quote the renamed user anymore, oneboxed user profiles, queued posts, or staff logs.</li>
  <li>Your email, name, date of birth and avatar will be removed.</li>
  <li>Your user profile will be removed.</li>
  <li>Any API keys generated for the account will be revoked.</li>
  <li>Any third-party authentication mechanism (Google/Facebook/etc) will be revoked.</li>
</ul>

9 个赞

太棒了,组件。在将 discourse 升级到 3.2.0 后,我在日志中看到了一个错误

Account Deletion Request 主题/组件正在抛出错误:
TypeError: 无法读取 null 的属性(读取“en”)

这是回溯:

TypeError: 无法读取 null 的属性(读取“en”)
    at Object.initialize (https://site.com/theme-javascripts/3ded4211d42a4dc71642febcfdc4e24847261d8e.js?__ws=site.com:5:51)
    at n.initialize (https://site.com/assets/chunk.6d10396b901f5b95b67e.d41d8cd9.js:2:309459)
    at https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141483
    at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:368590)
    at e.walk (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367606)
    at e.each (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:366959)
    at e.topsort (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:367005)
    at e._runInitializer (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141795)
    at e.runInitializers (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:141441)
    at e._bootSync (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110927)
    at e.domReady (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:110503)
    at invoke (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358129)
    at h.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:357216)
    at p.flush (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:358979)
    at B._end (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:364062)
    at B._boundAutorunEnd (https://site.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:11:360486)
2 个赞

感谢您的报告 :slight_smile: 我已合并修复程序,请更新组件。

哦,这似乎是稳定版本。:thinking: 我认为这还不能奏效。

1 个赞

我怀疑他的问题是别的。RBoy 也报告了其他组件的相同问题。:thinking:

另外,我在 Discourse 3.2.0 上试了你的,目前没有发现任何问题!

2 个赞

是的,升级到 3.2.0 后,似乎只影响了某些主题组件,但并非全部。在我的例子中,是这个主题、DiscoTOC 和 Dark/Light Mode 主题。

2 个赞

建议,您可以将此代码添加到第一个帖子中,以便用户一键安装此组件

[wrap=theme-install-button repoUrl="https://github.com/VaperinaDEV/discourse-account-deletion-request" repoName="Account Deletion Request"]
安装此主题组件
[/wrap]

它看起来应该是这样的:

安装此主题组件