mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-14 13:02:08 +00:00
Fix wrong argument order when calling NaiveDateTime.diff
This commit is contained in:
parent
f95ae0e50a
commit
8be9a9b5bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue