Browse Source

BBS: small fixes.

tags/v1.1.4
lain 5 years ago
parent
commit
4c76f49e60
3 changed files with 4 additions and 8 deletions
  1. +1
    -5
      lib/pleroma/bbs/handler.ex
  2. +1
    -1
      mix.exs
  3. +2
    -2
      test/bbs/handler_test.exs

+ 1
- 5
lib/pleroma/bbs/handler.ex View File

@@ -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])}!")


+ 1
- 1
mix.exs View File

@@ -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



+ 2
- 2
test/bbs/handler_test.exs View File

@@ -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


Loading…
Cancel
Save