diff options
author | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-14 22:29:05 +0700 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-14 22:29:05 +0700 |
commit | dc21181f6504b55afa68de63f170fcb0f1084a6b (patch) | |
tree | 6c7a22e3386a0e744a5195222405022951b9e801 /lib | |
parent | 0cd4b6024d043efb096a353d6bd84ea0aeb74a6f (diff) | |
download | pleroma-dc21181f6504b55afa68de63f170fcb0f1084a6b.tar.gz |
Update updated_at field on notification read
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/notification.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index b357d5399..29845b9da 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -58,7 +58,10 @@ defmodule Pleroma.Notification do where: n.user_id == ^user_id, where: n.id <= ^id, update: [ - set: [seen: true] + set: [ + seen: true, + updated_at: ^NaiveDateTime.utc_now() + ] ] ) |