Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
eb0fb73d
Commit
eb0fb73d
authored
May 04, 2019
by
lain
Browse files
BBS: Credo fixes.
parent
c58fd4c0
Pipeline
#11413
passed with stages
in 3 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/bbs/handler.ex
View file @
eb0fb73d
defmodule
Pleroma
.
BBS
.
Handler
do
use
Sshd
.
ShellHandler
alias
Pleroma
.
Activity
alias
Pleroma
.
Web
.
CommonAPI
alias
Pleroma
.
Web
.
ActivityPub
.
ActivityPub
alias
Pleroma
.
Web
.
CommonAPI
def
on_shell
(
username
,
_pubkey
,
_ip
,
_port
)
do
:ok
=
IO
.
puts
(
"Welcome to
#{
Pleroma
.
Config
.
get
([
:instance
,
:name
])
}
!"
)
...
...
test/bbs/handler_test.exs
View file @
eb0fb73d
...
...
@@ -2,10 +2,10 @@ defmodule Pleroma.BBS.HandlerTest do
use
Pleroma
.
DataCase
alias
Pleroma
.
Activity
alias
Pleroma
.
BBS
.
Handler
alias
Pleroma
.
Web
.
CommonAPI
alias
Pleroma
.
Object
alias
Pleroma
.
Repo
alias
Pleroma
.
User
alias
Pleroma
.
Web
.
CommonAPI
import
ExUnit
.
CaptureIO
import
Pleroma
.
Factory
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment