From: eugenijm Date: Tue, 19 Feb 2019 07:43:37 +0000 (+0300) Subject: Update user cache when user tags are updated X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=fc35481445c4fdfea9fab58a74c5f4231b56885b;p=akkoma Update user cache when user tags are updated --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index ff84e7b0a..322c338cd 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -1200,7 +1200,7 @@ defmodule Pleroma.User do {:ok, updated_user} = user |> change(%{tags: new_tags}) - |> Repo.update() + |> update_and_set_cache() updated_user end