mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 18:36:21 +00:00
BBS: Use cached user fetcher.
This commit is contained in:
parent
4c76f49e60
commit
c9d1cb2dce
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue