# システムボットがカレンダー投稿を削除している場合のデバッグ方法

**URL:** https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363
**Category:** Support
**Created:** [2019 年 12 月 7 日午後 7:33 UTC](https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363 "2019-12-07T19:33:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![croth1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/croth1/32/163305_2.png) [@croth1](https://meta.discourse.org/u/croth1)
#### Post date: [2019 年 12 月 7 日午後 7:33 UTC](https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363/1 "2019-12-07T19:33:20Z")

</div>

最近、Docker チュートリアルに従って、テスト用の Discourse インスタンスをセットアップしました。昨日、最新バージョンの beta 2.4.0.beta8 ([68124caae2](https://github.com/discourse/discourse/commits/68124caae2664c93e7481754890b5c524cfb0b1e)) に更新し、3 つの公式プラグイン（discourse-calendar、discourse-checklist、discourse-solved）の最新バージョンをインストールしました。

カレンダープラグインを試して、新しいトピックを作成し、最初の投稿にカレンダーを含めました。問題ありませんでした。しかし、カレンダーにイベントを追加するための返信を投稿すると、システムボットが非常に短い時間後に自動的にその返信を削除してしまいます。投稿を復元しても、再び削除されてしまいます。

削除イベントはログに記録されていますが、何がトリガーとなったかの痕跡は見当たりません。なぜこのようなことが起こるのか、またどのようにデバッグを始めるべきか、少し見当がつかない状態です。

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/80b1b0d2f17e7738288bbbb4edeb1cbecf4f2ad3.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2019 年 12 月 7 日午後 7:39 UTC](https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363/2 "2019-12-07T19:39:57Z")

</div>

過去の日付のイベントを追加していましたか？もしそうであれば、この動作は正常です。システムボットが投稿を削除しているのではなく、トピックの長さを管理しやすいように、カレンダープラグインが期限切れのイベントを削除しています。

サイト設定 `delete_expired_event_posts_after` でこれを上書きでき、`-1` に設定してください。

今後は、プラグイン固有のサポートリクエストはそれぞれのトピックに投稿してください。これはすでに Discourse Calendar のトピックで回答されています。

[https://meta.discourse.org/t/discourse-calendar/97376/17](https://meta.discourse.org/t/discourse-calendar/97376/17)

---

<div class="post-metadata">

### Author: ![croth1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/croth1/32/163305_2.png) [@croth1](https://meta.discourse.org/u/croth1)
#### Post date: [2019 年 12 月 7 日午後 8:08 UTC](https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363/3 "2019-12-07T20:08:31Z")

</div>

ステファン、超迅速な回答をありがとうございます。これがまさに問題でした。私はなぜか、これがカレンダープラグインの意図的な機能であることに気づいていませんでしたが、今では納得しました。👍

技術的に可能であれば、削除イベントがカレンダープラグインによってトリガーされた自動クリーンアップ処理によるものであることをログに記載していただけると、より役立つかもしれません。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2020 年 1 月 6 日午後 8:14 UTC](https://meta.discourse.org/t/system-bot-removing-calendar-posts-how-to-debug/135363/4 "2020-01-06T20:14:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
