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:
parent
e4dc3f71ae
commit
5f9786288d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue