Commit c9d1cb2d authored by lain's avatar lain
Browse files

BBS: Use cached user fetcher.

parent 4c76f49e
Pipeline #11411 failed with stages
in 6 minutes and 23 seconds
...@@ -6,7 +6,7 @@ defmodule Pleroma.BBS.Handler do ...@@ -6,7 +6,7 @@ defmodule Pleroma.BBS.Handler do
def on_shell(username, _pubkey, _ip, _port) do def on_shell(username, _pubkey, _ip, _port) do
:ok = IO.puts("Welcome to #{Pleroma.Config.get([:instance, :name])}!") :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)}") Logger.debug("#{inspect(user)}")
loop(run_state(user: user)) loop(run_state(user: user))
end end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment