projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Style again the login page to fit pleroma more
[akkoma]
/
lib
/
pleroma
/
gopher
/
server.ex
diff --git
a/lib/pleroma/gopher/server.ex
b/lib/pleroma/gopher/server.ex
index b47a0697d9da48f4621a0f051f2883ab8c17c1a9..ba9614029ce510b78c167d12109ecd340e00d88e 100644
(file)
--- a/
lib/pleroma/gopher/server.ex
+++ b/
lib/pleroma/gopher/server.ex
@@
-37,10
+37,11
@@
end
defmodule Pleroma.Gopher.Server.ProtocolHandler do
alias Pleroma.Web.ActivityPub.ActivityPub
defmodule Pleroma.Gopher.Server.ProtocolHandler do
alias Pleroma.Web.ActivityPub.ActivityPub
- alias Pleroma.
User
+ alias Pleroma.
Web.ActivityPub.Visibility
alias Pleroma.Activity
alias Pleroma.Activity
- alias Pleroma.Repo
alias Pleroma.HTML
alias Pleroma.HTML
+ alias Pleroma.User
+ alias Pleroma.Repo
def start_link(ref, socket, transport, opts) do
pid = spawn_link(__MODULE__, :init, [ref, socket, transport, opts])
def start_link(ref, socket, transport, opts) do
pid = spawn_link(__MODULE__, :init, [ref, socket, transport, opts])
@@
-110,7
+111,7
@@
defmodule Pleroma.Gopher.Server.ProtocolHandler do
def response("/notices/" <> id) do
with %Activity{} = activity <- Repo.get(Activity, id),
def response("/notices/" <> id) do
with %Activity{} = activity <- Repo.get(Activity, id),
- true <-
ActivityPub
.is_public?(activity) do
+ true <-
Visibility
.is_public?(activity) do
activities =
ActivityPub.fetch_activities_for_context(activity.data["context"])
|> render_activities
activities =
ActivityPub.fetch_activities_for_context(activity.data["context"])
|> render_activities