# user\_actions テーブルにエディットが保存されない

**URL:** https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025
**Category:** Development
**Created:** [2020 年 3 月 21 日午前 8:34 UTC](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025 "2020-03-21T08:34:20Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2020 年 5 月 4 日午前 7:58 UTC](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025/22 "2020-05-04T07:58:39Z")

</div>

以下のバグがありました：

> <https://github.com/discourse/discourse/commit/3d0ccf864243fdfecc07ad3764df499a7b7a55f8>
>
> Due to a refactor in e90f9e5cc47 we stopped notifying on edits if
> a user liked a… post and then edited.
> 
> The like could have happened a long time ago so this gets extra
> confusing.
> 
> This change makes the suppression more deliberate. We only want
> to suppress quite/link/mention if the user already got a reply
> notification.
> 
> We can expand this suppression if it is not enough.

そして、この機能で実装を改善しました：

> <https://github.com/discourse/discourse/commit/3877ef2cfa17155a4c6063d6d3625c9bd4d5b5df>
>
> This ensures that at a minimum you are notified once a day of
> repeat edits by th…e same user.
> 
> Long term we may consider winding this down to say 1 hour or
> making it configurable.

あるユーザーが別のユーザーの投稿に「いいね」をし、その後その投稿を編集した場合、編集時の通知が行われなかったというエッジケースがありました。

さらに、同じ編集者が 1 日以内に再度編集した場合でも、1 日に 1 回は必ず通知が行われるようにする安全対策を追加しました（同じ編集者からの重複編集通知は 1 日間抑制されます）。現時点ではこの設定は変更できません。

---

_[View the full topic](https://meta.discourse.org/t/edits-not-being-stored-in-user-actions-table/145025)._
