projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix-tootdon-oauth' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
activity_pub.ex
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index a62be2511767d3057568572db19059966cd349bf..4f7be4293332cb09bc75e86e337fe8a1589e7d62 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-158,7
+158,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
# Only search through last 100_000 activities by default
defp restrict_recent(query, _) do
# Only search through last 100_000 activities by default
defp restrict_recent(query, _) do
- since =
Repo.aggregate(Activity, :max, :id
) - 100_000
+ since =
(Repo.aggregate(Activity, :max, :id) || 0
) - 100_000
from activity in query,
where: activity.id > ^since
from activity in query,
where: activity.id > ^since