# アップデートがないのに「アップデートがあります」と表示される

**URL:** <https://meta.discourse.org/t/updates-are-available-message-when-there-are-none/314306>\
**Category:** Bug\
**Tags:** fixed\
**Created:** [2024 年 6 月 29 日午後 4:06 UTC](https://meta.discourse.org/t/updates-are-available-message-when-there-are-none/314306 "2024-06-29T16:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [2024 年 7 月 15 日午前 8:13 UTC](https://meta.discourse.org/t/updates-are-available-message-when-there-are-none/314306/12 "2024-07-15T08:13:43Z")

</div>

こんにちは！👋

ご報告ありがとうございます。管理者の通知システムに最近変更を加えたところ、この特定のメッセージが壊れてしまいました。この修正をマージしました。🙏

> <https://github.com/discourse/discourse/pull/27916>
>
> \### What's the problem?
> 
> On the admin dashboard, when there are out of date th…emes, we're showing:
> 
> \> Updates are available for the following themes:
> 
> without rendering the list of themes referred to.
> 
> \### Why is this happening?
> 
> The \`OutOfDateThemes\` problem check is using an old method of setting the message, by overriding \`#message\`. It should instead use \`#translation\_keys\`. (By chance I noticed the same thing applies to \`UnreachableThemes\`.
> 
> \### How does this fix it?
> 
> 1. Stop overriding \`#message\` in the problem checks.
> 2. Remove the ability of doing so in the base class.
> 
> \### Do we need tests for this?
> 
> There are already tests, but the old method caused it to be a false negative. Now that the old method is removed, the existing test is testing what it's supposed to.
> 
> \### Show me!
> 
> \<img width="394" alt="Screenshot 2024-07-15 at 3 44 22 PM" src="https://github.com/user-attachments/assets/2090554f-ee1c-4b81-80ad-8e744d3d1cf6"\>

---

_[View the full topic](https://meta.discourse.org/t/updates-are-available-message-when-there-are-none/314306)._
