From 5f9786288d0ebc13240f55caa7ae4578d386d843 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Mon, 14 Jan 2019 09:52:52 +0300 Subject: [PATCH] Prefer ids to usernames --- 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 3120b13b6..26cef53ee 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -454,7 +454,7 @@ defmodule Pleroma.User do end def get_cached_by_nickname_or_id(nickname_or_id) do - get_cached_by_nickname(nickname_or_id) || get_cached_by_id(nickname_or_id) + get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id) end def get_by_nickname(nickname) do -- 2.45.2