Flake Ids for Users and Activities
[akkoma] / lib / pleroma / web / activity_pub / transmogrifier.ex
index 5d3feccfeef22d789b67ef6f25380d4b0d10ac7c..e646de608c95178cc10dc0d796ef94c7644922d9 100644 (file)
@@ -900,15 +900,10 @@ 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.
-    # 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,
         update: [
           set: [
             recipients: