From 4475b7f095c419b536edeff007cdcf86a1c31166 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 6 Dec 2019 17:41:56 -0500 Subject: [PATCH] actually use NDT diff... --- lib/philomena/users/ability.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/users/ability.ex b/lib/philomena/users/ability.ex index 9e75118a..0c094eb8 100644 --- a/lib/philomena/users/ability.ex +++ b/lib/philomena/users/ability.ex @@ -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