projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
060ac6c
)
Restrict activity fixing more.
author
lain
<lain@soykaf.club>
Thu, 8 Mar 2018 18:07:32 +0000
(19:07 +0100)
committer
lain
<lain@soykaf.club>
Thu, 8 Mar 2018 18:09:46 +0000
(19:09 +0100)
If we need it for older ones, we can add a task for that later.
lib/pleroma/web/activity_pub/transmogrifier.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/transmogrifier.ex
b/lib/pleroma/web/activity_pub/transmogrifier.ex
index 37db67798aa91d821467f0d5ad806215fb814e89..afb25b97b46b48711beac522089371a0001ca0bb 100644
(file)
--- a/
lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/
lib/pleroma/web/activity_pub/transmogrifier.ex
@@
-252,7
+252,8
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier do
maybe_retire_websub(user.ap_id)
# Only do this for recent activties, don't go through the whole db.
- since = (Repo.aggregate(Activity, :max, :id) || 0) - 100_000
+ # Only look at the last 1000 activities.
+ since = (Repo.aggregate(Activity, :max, :id) || 0) - 1_000
q = from a in Activity,
where: ^old_follower_address in a.recipients,
where: a.id > ^since,