projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changing references of freenode to libera.chat
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
mrf
/
reject_non_public_test.exs
diff --git
a/test/pleroma/web/activity_pub/mrf/reject_non_public_test.exs
b/test/pleroma/web/activity_pub/mrf/reject_non_public_test.exs
index e08eb3ba6bb9c77235293154f30759cc6f0cbf4c..63c68d79889d47579c70ca446e89ffdd68f49f39 100644
(file)
--- a/
test/pleroma/web/activity_pub/mrf/reject_non_public_test.exs
+++ b/
test/pleroma/web/activity_pub/mrf/reject_non_public_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
@@
-49,7
+49,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
"type" => "Create"
}
"type" => "Create"
}
-
Pleroma.Config.put
([:mrf_rejectnonpublic, :allow_followersonly], true)
+
clear_config
([:mrf_rejectnonpublic, :allow_followersonly], true)
assert {:ok, _message} = RejectNonPublic.filter(message)
end
assert {:ok, _message} = RejectNonPublic.filter(message)
end
@@
-63,7
+63,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
"type" => "Create"
}
"type" => "Create"
}
-
Pleroma.Config.put
([:mrf_rejectnonpublic, :allow_followersonly], false)
+
clear_config
([:mrf_rejectnonpublic, :allow_followersonly], false)
assert {:reject, _} = RejectNonPublic.filter(message)
end
end
assert {:reject, _} = RejectNonPublic.filter(message)
end
end
@@
-79,7
+79,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
"type" => "Create"
}
"type" => "Create"
}
-
Pleroma.Config.put
([:mrf_rejectnonpublic, :allow_direct], true)
+
clear_config
([:mrf_rejectnonpublic, :allow_direct], true)
assert {:ok, _message} = RejectNonPublic.filter(message)
end
assert {:ok, _message} = RejectNonPublic.filter(message)
end
@@
-93,7
+93,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
"type" => "Create"
}
"type" => "Create"
}
-
Pleroma.Config.put
([:mrf_rejectnonpublic, :allow_direct], false)
+
clear_config
([:mrf_rejectnonpublic, :allow_direct], false)
assert {:reject, _} = RejectNonPublic.filter(message)
end
end
assert {:reject, _} = RejectNonPublic.filter(message)
end
end