aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-05-04 15:06:18 +0200
committerlain <lain@soykaf.club>2019-05-04 15:06:18 +0200
commit4c76f49e60287e6618f87a2bae3e0d4e8c444895 (patch)
tree2e037f4c1e789544c392b8bf7e54b2604bc1e40b
parent6ad8ddfd290f0239956874ccc9dc181167e84647 (diff)
downloadpleroma-4c76f49e60287e6618f87a2bae3e0d4e8c444895.tar.gz
BBS: small fixes.
-rw-r--r--lib/pleroma/bbs/handler.ex6
-rw-r--r--mix.exs2
-rw-r--r--test/bbs/handler_test.exs4
3 files changed, 4 insertions, 8 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex
index 1ebba77d2..75ba35dc2 100644
--- a/lib/pleroma/bbs/handler.ex
+++ b/lib/pleroma/bbs/handler.ex
@@ -1,12 +1,8 @@
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
+ alias Pleroma.Activity
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.ActivityPub.ActivityPub
- alias Pleroma.Activity
def on_shell(username, _pubkey, _ip, _port) do
:ok = IO.puts("Welcome to #{Pleroma.Config.get([:instance, :name])}!")
diff --git a/mix.exs b/mix.exs
index 38e83e679..47f7c2903 100644
--- a/mix.exs
+++ b/mix.exs
@@ -113,7 +113,7 @@ defmodule Pleroma.Mixfile do
{:recon, github: "ferd/recon", tag: "2.4.0"},
{:quack, "~> 0.1.1"},
{:benchee, "~> 1.0"},
- {:esshd, "~> 0.1.0"}
+ {:esshd, "~> 0.1.0"}
] ++ oauth_deps
end
diff --git a/test/bbs/handler_test.exs b/test/bbs/handler_test.exs
index a22c6d64d..1386a2d16 100644
--- a/test/bbs/handler_test.exs
+++ b/test/bbs/handler_test.exs
@@ -1,10 +1,10 @@
defmodule Pleroma.BBS.HandlerTest do
use Pleroma.DataCase
+ alias Pleroma.Activity
alias Pleroma.BBS.Handler
alias Pleroma.Web.CommonAPI
- alias Pleroma.User
alias Pleroma.Repo
- alias Pleroma.Activity
+ alias Pleroma.User
import ExUnit.CaptureIO
import Pleroma.Factory