summaryrefslogtreecommitdiff
path: root/test/web/rich_media/helpers_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-10-11 22:34:48 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-10-11 22:34:48 +0300
commit2498e569f12694439b6f99d0730f6fb36301c454 (patch)
tree16ed4ac74e04dba66e696e3678d15a1e6fadbfaa /test/web/rich_media/helpers_test.exs
parent89c595b772eaaa8809f5339d708d7dc22e51b662 (diff)
parentbc3cf0fee0b93eb3cf8d2ba0f9a0dcc09b01331d (diff)
downloadpleroma-2498e569f12694439b6f99d0730f6fb36301c454.tar.gz
pleroma-2498e569f12694439b6f99d0730f6fb36301c454.zip
Merge remote-tracking branch 'remotes/origin/develop' into ostatus-controller-no-auth-check-on-non-federating-instances
Diffstat (limited to 'test/web/rich_media/helpers_test.exs')
-rw-r--r--test/web/rich_media/helpers_test.exs35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/web/rich_media/helpers_test.exs b/test/web/rich_media/helpers_test.exs
index 8264a9c41..4b97bd66b 100644
--- a/test/web/rich_media/helpers_test.exs
+++ b/test/web/rich_media/helpers_test.exs
@@ -64,41 +64,6 @@ defmodule Pleroma.Web.RichMedia.HelpersTest do
Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
end
- test "refuses to crawl URLs from posts marked sensitive" do
- user = insert(:user)
-
- {:ok, activity} =
- CommonAPI.post(user, %{
- status: "http://example.com/ogp",
- sensitive: true
- })
-
- %Object{} = object = Object.normalize(activity)
-
- assert object.data["sensitive"]
-
- Config.put([:rich_media, :enabled], true)
-
- assert %{} = Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
- end
-
- test "refuses to crawl URLs from posts tagged NSFW" do
- user = insert(:user)
-
- {:ok, activity} =
- CommonAPI.post(user, %{
- status: "http://example.com/ogp #nsfw"
- })
-
- %Object{} = object = Object.normalize(activity)
-
- assert object.data["sensitive"]
-
- Config.put([:rich_media, :enabled], true)
-
- assert %{} = Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
- end
-
test "refuses to crawl URLs of private network from posts" do
user = insert(:user)