logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: cdf5a668f2194d98ac2020babc4b10e4b01ab957
parent 7f79b467b1b56ce9ac7f544aaa2b687dcae341c5
Author: eal <eal@waifu.club>
Date:   Mon, 11 Jun 2018 19:59:30 +0000

Merge branch 'fix/mix-task-caching' into 'develop'

make_moderator.ex: set cache on update

See merge request pleroma/pleroma!206

Diffstat:

Mlib/mix/tasks/make_moderator.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mix/tasks/make_moderator.ex b/lib/mix/tasks/make_moderator.ex @@ -19,7 +19,7 @@ defmodule Mix.Tasks.SetModerator do |> Map.put("is_moderator", !!moderator) cng = User.info_changeset(user, %{info: info}) - user = Repo.update!(cng) + {:ok, user} = User.update_and_set_cache(cng) IO.puts("Moderator status of #{nickname}: #{user.info["is_moderator"]}") else