projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remote Timeline: add Streaming support
[akkoma]
/
test
/
web
/
activity_pub
/
mrf
/
anti_followbot_policy_test.exs
diff --git
a/test/web/activity_pub/mrf/anti_followbot_policy_test.exs
b/test/web/activity_pub/mrf/anti_followbot_policy_test.exs
index 37a7bfcf7bf2effae10df1a7cf8d975cb9cc8deb..3c795f5ac407a35869d222857e9df41799f9ba2b 100644
(file)
--- a/
test/web/activity_pub/mrf/anti_followbot_policy_test.exs
+++ b/
test/web/activity_pub/mrf/anti_followbot_policy_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 201
9
Pleroma Authors <https://pleroma.social/>
+# Copyright © 201
7-2020
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicyTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicyTest do
@@
-21,7
+21,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicyTest do
"id" => "https://example.com/activities/1234"
}
"id" => "https://example.com/activities/1234"
}
-
{:reject, nil
} = AntiFollowbotPolicy.filter(message)
+
assert {:reject, "[AntiFollowbotPolicy]" <> _
} = AntiFollowbotPolicy.filter(message)
end
test "matches followbots by display name" do
end
test "matches followbots by display name" do
@@
-36,7
+36,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicyTest do
"id" => "https://example.com/activities/1234"
}
"id" => "https://example.com/activities/1234"
}
-
{:reject, nil
} = AntiFollowbotPolicy.filter(message)
+
assert {:reject, "[AntiFollowbotPolicy]" <> _
} = AntiFollowbotPolicy.filter(message)
end
end
end
end