From: rinpatch Date: Mon, 14 Jan 2019 06:52:52 +0000 (+0300) Subject: Prefer ids to usernames X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5f9786288d0ebc13240f55caa7ae4578d386d843;p=akkoma Prefer ids to usernames --- 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