1 defmodule Mix.Tasks.Pleroma.CountStatuses do
2 @shortdoc "Re-counts statuses for all users"
9 Mix.Pleroma.start_pleroma()
14 |> Pleroma.Repo.stream()
16 Pleroma.Repo.transaction(fn ->
17 Enum.each(stream, &User.update_note_count/1)
20 Mix.Pleroma.shell_info("Done")