# 即使设置了-1，已过期的带有结束时间的事件仍会从即将发生的事件中移除

**URL:** <https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125>\
**Category:** Product Support\
**Tags:** events\
**Created:** [2022 年7 月 27 日 08:45 UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125 "2022-07-27T08:45:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
发布日期： [2022 年7 月 27 日 10:01 UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125/4 "2022-07-27T10:01:13Z")

</div>

如果您指的是 `delete expired event posts after` 设置，我认为它会阻止删除帖子，但不会阻止显示活动。此外，我认为这里的“活动”一词具有误导性，它在日历部分，所以我认为它更多地意味着“与日期相关的事物”，而不是“可以回复的活动”。  
这是一个日历活动，而不是一个事件活动。

活动活动旨在显示在 `/upcoming-events` 中，因此没有过去的内容……

> <https://github.com/discourse/discourse-calendar/blob/e544ef61fd90b25a2e984c30cb4efa00ee8051f2/lib/discourse_post_event/event_finder.rb#L17-L25>

实际上，有一个关于此的 PR：[FEATURE: Show all events in past (add deleted\_at in discourse\_calendar\_post\_event\_dates) + add show\_past\_event in settings by ledadu · Pull Request #199 · discourse/discourse-calendar · GitHub](https://github.com/discourse/discourse-calendar/pull/199)

---

_[View the full topic](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125)._
