Commit 4c76f49e authored by lain's avatar lain

BBS: small fixes.

parent 6ad8ddfd
defmodule Pleroma.BBS.Handler do defmodule Pleroma.BBS.Handler do
@moduledoc """
An example implementation of `Sshd.ShellHandler`, implementing a very simple
Read-Eval-Loop, that does nothing.
use Sshd.ShellHandler use Sshd.ShellHandler
alias Pleroma.Activity
alias Pleroma.Web.CommonAPI alias Pleroma.Web.CommonAPI
alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Activity
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])}!")
...@@ -113,7 +113,7 @@ defp deps do ...@@ -113,7 +113,7 @@ defp deps do
{:recon, github: "ferd/recon", tag: "2.4.0"}, {:recon, github: "ferd/recon", tag: "2.4.0"},
{:quack, "~> 0.1.1"}, {:quack, "~> 0.1.1"},
{:benchee, "~> 1.0"}, {:benchee, "~> 1.0"},
{:esshd, "~> 0.1.0"} {:esshd, "~> 0.1.0"}
] ++ oauth_deps ] ++ oauth_deps
end end
defmodule Pleroma.BBS.HandlerTest do defmodule Pleroma.BBS.HandlerTest do
use Pleroma.DataCase use Pleroma.DataCase
alias Pleroma.Activity
alias Pleroma.BBS.Handler alias Pleroma.BBS.Handler
alias Pleroma.Web.CommonAPI alias Pleroma.Web.CommonAPI
alias Pleroma.User
alias Pleroma.Repo alias Pleroma.Repo
alias Pleroma.Activity alias Pleroma.User
import ExUnit.CaptureIO import ExUnit.CaptureIO
import Pleroma.Factory import Pleroma.Factory
Markdown is supported
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