projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/remove-disable-blocks' into 'develop'
[akkoma]
/
lib
/
pleroma
/
bbs
/
handler.ex
diff --git
a/lib/pleroma/bbs/handler.ex
b/lib/pleroma/bbs/handler.ex
index 75ba35dc22609c9b46cbcb5b6890d8bd9448dcd7..0a381f5920c954517b3dfdf1a31bf022cb0b4601 100644
(file)
--- a/
lib/pleroma/bbs/handler.ex
+++ b/
lib/pleroma/bbs/handler.ex
@@
-1,12
+1,16
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.BBS.Handler do
use Sshd.ShellHandler
alias Pleroma.Activity
defmodule Pleroma.BBS.Handler do
use Sshd.ShellHandler
alias Pleroma.Activity
- alias Pleroma.Web.CommonAPI
alias Pleroma.Web.ActivityPub.ActivityPub
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])}!")
def on_shell(username, _pubkey, _ip, _port) do
: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)}")
loop(run_state(user: user))
end
Logger.debug("#{inspect(user)}")
loop(run_state(user: user))
end
@@
-95,7
+99,6
@@
defmodule Pleroma.BBS.Handler do
activities =
[user.ap_id | user.following]
|> ActivityPub.fetch_activities(params)
activities =
[user.ap_id | user.following]
|> ActivityPub.fetch_activities(params)
- |> ActivityPub.contain_timeline(user)
Enum.each(activities, fn activity ->
puts_activity(activity)
Enum.each(activities, fn activity ->
puts_activity(activity)