Purge Rejected Follow requests in daily task #334

Merged
floatingghost merged 6 commits from purge-rejected-follow-requests into develop 2022-12-03 23:17:43 +00:00
Showing only changes of commit 448630a410 - Show all commits

View file

@ -34,14 +34,14 @@ test "it prunes old follow requests" do
insert(
:follow_activity,
follower: follower,
followd: followee,
followed: followee,
state: "reject"
)
old_not_rejected_request =
insert(:follow_activity,
follower: follower,
followd: followee,
followed: followee,
state: "pending",
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour)
)
@ -49,7 +49,7 @@ test "it prunes old follow requests" do
old_follow_request =
insert(:follow_activity,
follower: follower,
followd: followee,
followed: followee,
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour),
state: "reject"
)