Commit 1555b7fa authored by lain's avatar lain

Add AP fixup task.

parent 88950880
Pipeline #794 failed with stage
in 2 minutes and 11 seconds
defmodule Mix.Tasks.FixApUsers do
use Mix.Task
import Mix.Ecto
import Ecto.Query
alias Pleroma.{Repo, User}
@shortdoc "Grab all ap users again"
def run([]) do"app.start")
q = from u in User,
where: fragment("? @> ?",, ^%{"ap_enabled" => true})
users = Repo.all(q)
Enum.each(users, fn(user) ->
IO.puts("Fetching #{user.nickname}")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment