Rename wrongly-named function.
authorRoger Braun <roger@rogerbraun.net>
Sun, 30 Apr 2017 13:06:22 +0000 (15:06 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sun, 30 Apr 2017 13:06:22 +0000 (15:06 +0200)
lib/pleroma/user.ex

index 2c297433a5e8452f0a14655a23fefb4581937f3e..58f89a915487ee8408a9b59ad0be6834eb6fea5f 100644 (file)
@@ -123,7 +123,7 @@ defmodule Pleroma.User do
     Cachex.get!(:user_cache, key, fallback: fn(_) -> Repo.get_by(User, nickname: nickname) end)
   end
 
-  def get_cached_by_nickname(nickname) do
+  def get_by_nickname(nickname) do
     Repo.get_by(User, nickname: nickname)
   end