Commit 18dfdfdc authored by lain's avatar 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 and 48 seconds
......@@ -252,7 +252,8 @@ defp user_upgrade_task(user) do
# 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: > ^since,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment