From: William Pitcock Date: Thu, 14 Feb 2019 19:58:24 +0000 (+0000) Subject: user: search: use get_or_fetch() instead of get_or_fetch_by_nickname() X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=da44cdd3812fabb777c738b162c704de22e4b2f4;p=akkoma user: search: use get_or_fetch() instead of get_or_fetch_by_nickname() get_or_fetch() handles the nickname verses URI differences transparently. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 3232cb842..29d2b3d89 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -731,7 +731,7 @@ defmodule Pleroma.User do # Strip the beginning @ off if there is a query query = String.trim_leading(query, "@") - if resolve, do: User.get_or_fetch_by_nickname(query) + if resolve, do: get_or_fetch(query) fts_results = do_search(fts_search_subquery(query), for_user)