Restrict activity fixing more.
If we need it for older ones, we can add a task for that later.
This commit is contained in:
parent
060ac6cb95
commit
ff7bc16a7e
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
maybe_retire_websub(user.ap_id)
|
maybe_retire_websub(user.ap_id)
|
||||||
|
|
||||||
# Only do this for recent activties, don't go through the whole db.
|
# 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,
|
q = from a in Activity,
|
||||||
where: ^old_follower_address in a.recipients,
|
where: ^old_follower_address in a.recipients,
|
||||||
where: a.id > ^since,
|
where: a.id > ^since,
|
||||||
|
|
Loading…
Reference in a new issue