# 勿扰模式后的实时通知

**URL:** <https://meta.discourse.org/t/live-notifications-after-do-not-disturb/227117>\
**Category:** Support\
**Tags:** pause-notifications\
**Created:** [2022年五月16日 05:09 UTC](https://meta.discourse.org/t/live-notifications-after-do-not-disturb/227117 "2022-05-16T05:09:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2026年九月7日 17:51 UTC](https://meta.discourse.org/t/live-notifications-after-do-not-disturb/227117/5 "2026-09-07T17:51:39Z")

</div>

感谢修复此问题

> <https://github.com/discourse/discourse/pull/43243>
>
> Previously, loading the site while Do Not Disturb was active would permanently d…estroy the user's push subscription, because \`unsubscribePushNotifications\` was called unconditionally whenever \`isPushNotificationsEnabled\` returned false.
> 
> This change skips the unsubscription when DND is the reason, since the server already suppresses push delivery during DND via \`PostAlerter\` — the client-side subscription never needed to be torn down.

---

_[View the full topic](https://meta.discourse.org/t/live-notifications-after-do-not-disturb/227117)._
