Update user cache when user tags are updated
authoreugenijm <eugenijm@protonmail.com>
Tue, 19 Feb 2019 07:43:37 +0000 (10:43 +0300)
committereugenijm <eugenijm@protonmail.com>
Tue, 19 Feb 2019 07:43:38 +0000 (10:43 +0300)
lib/pleroma/user.ex

index ff84e7b0ab63cf8956b18689cd665fbe353e8fb8..322c338cdddad2a3233684e63506f058cff1ca53 100644 (file)
@@ -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