BBS: Use cached user fetcher.
authorlain <lain@soykaf.club>
Sat, 4 May 2019 13:08:07 +0000 (15:08 +0200)
committerlain <lain@soykaf.club>
Sat, 4 May 2019 13:08:07 +0000 (15:08 +0200)
lib/pleroma/bbs/handler.ex

index 75ba35dc22609c9b46cbcb5b6890d8bd9448dcd7..14e6a68075896add655a1519672c384adb3a6997 100644 (file)
@@ -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