diff options
author | lain <lain@soykaf.club> | 2018-03-08 19:07:32 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-03-08 19:09:46 +0100 |
commit | ff7bc16a7e0385e323741b291967aaa51648148a (patch) | |
tree | f87cd4581125d446f25d349befb1238d059f0f64 | |
parent | 060ac6cb95a6088bb71a9d4f25560e8afe5c642e (diff) | |
download | pleroma-ff7bc16a7e0385e323741b291967aaa51648148a.tar.gz |
Restrict activity fixing more.
If we need it for older ones, we can add a task for that later.
-rw-r--r-- | lib/pleroma/web/activity_pub/transmogrifier.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 37db67798..afb25b97b 100644 --- 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, |