projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract timeline actions from `MastodonAPIController` into `TimelineController`
[akkoma]
/
lib
/
pleroma
/
object.ex
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] &&
%{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
case Fetcher.refetch_object(object) do
{:ok, %Object{} = object} ->
object