1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 10:59:17 +00:00

Prefer ids to usernames

This commit is contained in:
rinpatch 2019-01-14 09:52:52 +03:00
parent e4dc3f71ae
commit 5f9786288d

View file

@ -454,7 +454,7 @@ def get_cached_by_nickname(nickname) 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