projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95ae0e
)
Fix wrong argument order when calling NaiveDateTime.diff
author
rinpatch
<rinpatch@sdf.org>
Wed, 18 Sep 2019 15:52:33 +0000
(18:52 +0300)
committer
Ariadne Conill
<ariadne@dereferenced.org>
Sun, 6 Oct 2019 14:53:23 +0000
(14:53 +0000)
lib/pleroma/object.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/object.ex
b/lib/pleroma/object.ex
index 640e068e56ce8cd7da2c43fcc0b9bd78508af55a..3fa407931e3bd43d8fba928852232f75f2d09192 100644
(file)
--- a/
lib/pleroma/object.ex
+++ b/
lib/pleroma/object.ex
@@
-42,7
+42,7
@@
defmodule Pleroma.Object do
%{updated_at: updated_at} = object = get_by_id(id)
if opts[:interval] &&
- NaiveDateTime.diff(
updated_at, NaiveDateTime.utc_now()
) > opts[:interval] do
+ NaiveDateTime.diff(
NaiveDateTime.utc_now(), updated_at
) > opts[:interval] do
case Fetcher.refetch_object(object) do
{:ok, %Object{} = object} ->
object