Commit 18dfdfdc by lain

Restrict activity fixing more.

If we need it for older ones, we can add a task for that later.
parent 611ca385
Pipeline #885 passed with stage
in 2 minutes 48 seconds
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment