From: lain Date: Sat, 24 Feb 2018 09:58:16 +0000 (+0100) Subject: Fixes 4: In Da Hood. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6744710908a7943da0de15b2b944dd318a96be76;p=akkoma Fixes 4: In Da Hood. --- diff --git a/lib/mix/tasks/fix_ap_users.ex b/lib/mix/tasks/fix_ap_users.ex index ae3475777..ff09074c3 100644 --- a/lib/mix/tasks/fix_ap_users.ex +++ b/lib/mix/tasks/fix_ap_users.ex @@ -9,7 +9,8 @@ defmodule Mix.Tasks.FixApUsers do Mix.Task.run("app.start") q = from u in User, - where: fragment("? @> ?", u.info, ^%{"ap_enabled" => true}) + where: fragment("? @> ?", u.info, ^%{"ap_enabled" => true}), + where: u.local == false users = Repo.all(q) Enum.each(users, fn(user) ->