oof
This commit is contained in:
parent
8a9f089812
commit
9a90b5d91a
@ -464,7 +464,6 @@ defmodule Pleroma.User do
|
|||||||
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_id(maybe_id) || get_cached_by_nickname(nickname_or_id)
|
get_cached_by_id(maybe_id) || get_cached_by_nickname(nickname_or_id)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def get_by_nickname(nickname) do
|
def get_by_nickname(nickname) do
|
||||||
Repo.get_by(User, nickname: nickname) ||
|
Repo.get_by(User, nickname: nickname) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user