mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
actually use NDT diff...
This commit is contained in:
parent
26d203f54c
commit
4475b7f095
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
# comment must have been made no later than 15 minutes ago
|
||||
time_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-15 * 60)
|
||||
|
||||
DateTime.diff(comment.created_at, time_ago) > 0
|
||||
NaiveDateTime.diff(comment.created_at, time_ago) > 0
|
||||
end
|
||||
|
||||
# Edit metadata on images where that is allowed
|
||||
|
|
Loading…
Reference in a new issue