import Ecto.Query, only: [from: 2]
def change do
+ Pleroma.Config.Oban.warn()
+
+ Application.ensure_all_started(:oban)
+
Supervisor.start_link([{Oban, Pleroma.Config.get(Oban)}],
strategy: :one_for_one,
name: Pleroma.Supervisor
with {:ok, expires_at} <- DateTime.from_naive(expiration.scheduled_at, "Etc/UTC") do
Pleroma.Workers.PurgeExpiredActivity.enqueue(%{
activity_id: FlakeId.to_string(expiration.activity_id),
- expires_at: expires_at,
- validate: false
+ expires_at: expires_at
})
end
end)