Skip to content
GitLab
Menu
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
5202d4ce
Commit
5202d4ce
authored
Aug 06, 2018
by
kaniini
Browse files
relay: do not relay in test mode
parent
0ca9b9ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/federator/federator.ex
View file @
5202d4ce
...
...
@@ -71,8 +71,10 @@ def handle(:publish, activity) do
Logger
.
info
(
fn
->
"Sending
#{
activity
.
data
[
"id"
]
}
out via Salmon"
end
)
Pleroma
.
Web
.
Salmon
.
publish
(
actor
,
activity
)
Logger
.
info
(
fn
->
"Relaying
#{
activity
.
data
[
"id"
]
}
out"
end
)
Pleroma
.
Web
.
ActivityPub
.
Relay
.
publish
(
activity
)
if
Mix
.
env
()
!=
:test
do
Logger
.
info
(
fn
->
"Relaying
#{
activity
.
data
[
"id"
]
}
out"
end
)
Pleroma
.
Web
.
ActivityPub
.
Relay
.
publish
(
activity
)
end
end
Logger
.
info
(
fn
->
"Sending
#{
activity
.
data
[
"id"
]
}
out via AP"
end
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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