projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'web-push-fix' into 'develop'
[akkoma]
/
test
/
web
/
federator_test.exs
diff --git
a/test/web/federator_test.exs
b/test/web/federator_test.exs
index 261518ef03fa58c92570ca05d86f3570d1b7f6f8..592fdccd19168a86f3c42ff95f448a5c13df977a 100644
(file)
--- a/
test/web/federator_test.exs
+++ b/
test/web/federator_test.exs
@@
-23,13
+23,13
@@
defmodule Pleroma.Web.FederatorTest do
setup_all do: clear_config([:instance, :federating], true)
setup do: clear_config([:instance, :allow_relay])
setup_all do: clear_config([:instance, :federating], true)
setup do: clear_config([:instance, :allow_relay])
- setup do: clear_config([:
instance, :rewrite_policy
])
+ setup do: clear_config([:
mrf, :policies
])
setup do: clear_config([:mrf_keyword])
describe "Publish an activity" do
setup do
user = insert(:user)
setup do: clear_config([:mrf_keyword])
describe "Publish an activity" do
setup do
user = insert(:user)
- {:ok, activity} = CommonAPI.post(user, %{
"status" =>
"HI"})
+ {:ok, activity} = CommonAPI.post(user, %{
status:
"HI"})
relay_mock = {
Pleroma.Web.ActivityPub.Relay,
relay_mock = {
Pleroma.Web.ActivityPub.Relay,
@@
-96,7
+96,7
@@
defmodule Pleroma.Web.FederatorTest do
Instances.set_consistently_unreachable(URI.parse(inbox2).host)
{:ok, _activity} =
Instances.set_consistently_unreachable(URI.parse(inbox2).host)
{:ok, _activity} =
- CommonAPI.post(user, %{
"status" =>
"HI @nick1@domain.com, @nick2@domain2.com!"})
+ CommonAPI.post(user, %{
status:
"HI @nick1@domain.com, @nick2@domain2.com!"})
expected_dt = NaiveDateTime.to_iso8601(dt)
expected_dt = NaiveDateTime.to_iso8601(dt)
@@
-158,7
+158,7
@@
defmodule Pleroma.Web.FederatorTest do
Pleroma.Config.put([:mrf_keyword, :reject], ["lain"])
Pleroma.Config.put(
Pleroma.Config.put([:mrf_keyword, :reject], ["lain"])
Pleroma.Config.put(
- [:
instance, :rewrite_policy
],
+ [:
mrf, :policies
],
Pleroma.Web.ActivityPub.MRF.KeywordPolicy
)
Pleroma.Web.ActivityPub.MRF.KeywordPolicy
)