From: lain Date: Sat, 4 May 2019 13:08:07 +0000 (+0200) Subject: BBS: Use cached user fetcher. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c9d1cb2dcefb850357b953a7a2d308de39b35e07;p=akkoma BBS: Use cached user fetcher. --- diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex index 75ba35dc2..14e6a6807 100644 --- a/lib/pleroma/bbs/handler.ex +++ b/lib/pleroma/bbs/handler.ex @@ -6,7 +6,7 @@ defmodule Pleroma.BBS.Handler do def on_shell(username, _pubkey, _ip, _port) do :ok = IO.puts("Welcome to #{Pleroma.Config.get([:instance, :name])}!") - user = Pleroma.User.get_by_nickname(to_string(username)) + user = Pleroma.User.get_cached_by_nickname(to_string(username)) Logger.debug("#{inspect(user)}") loop(run_state(user: user)) end