From eb12a89d22c09bccad7cb13780e0313de8be8e93 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sun, 30 Apr 2017 15:06:22 +0200
Subject: [PATCH] Rename wrongly-named function.

---
 lib/pleroma/user.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index 2c297433a..58f89a915 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -123,7 +123,7 @@ def get_cached_by_nickname(nickname) 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