Prefer ids to usernames
This commit is contained in:
parent
e4dc3f71ae
commit
5f9786288d
|
@ -454,7 +454,7 @@ def get_cached_by_nickname(nickname) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_cached_by_nickname_or_id(nickname_or_id) do
|
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
|
end
|
||||||
|
|
||||||
def get_by_nickname(nickname) do
|
def get_by_nickname(nickname) do
|
||||||
|
|
Loading…
Reference in New Issue