# iOS のスプーフィア通知に関するバグ

**URL:** <https://meta.discourse.org/t/bug-in-spoiler-ios-notifications/113825>\
**Category:** Bug\
**Created:** [2019 年 4 月 9 日午前 3:59 UTC](https://meta.discourse.org/t/bug-in-spoiler-ios-notifications/113825 "2019-04-09T03:59:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2019 年 4 月 10 日午前 6:48 UTC](https://meta.discourse.org/t/bug-in-spoiler-ios-notifications/113825/5 "2019-04-10T06:48:19Z")

</div>

I think it comes from our excerpt parser that is being called here

> <https://github.com/discourse/discourse/blob/b58867b6e936a5247304e9f06f827cf5012a92ed/app/services/post_alerter.rb#L432>

We have some code to preserve spoilers but I don’t know why we did that and it seems like a bad idea

> <https://github.com/discourse/discourse/blob/b58867b6e936a5247304e9f06f827cf5012a92ed/lib/excerpt_parser.rb#L111-L115>

We should be replacing the whole spoiler with `[spoiler]` like we do for images.

---

_[View the full topic](https://meta.discourse.org/t/bug-in-spoiler-ios-notifications/113825)._
