projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4dc3f7
)
Prefer ids to usernames
author
rinpatch
<rinpatch@sdf.org>
Mon, 14 Jan 2019 06:52:52 +0000
(09:52 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Mon, 14 Jan 2019 06:52:52 +0000
(09:52 +0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 3120b13b63bd5018523f42c4fbe0712cdb345cbb..26cef53ee6f1b64679c93f5fecdfee84a2d26093 100644
(file)
--- 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