Commit cb3cd3a7 authored by lain's avatar lain
Browse files

TopicsTest: Small addition.

parent 329aa19c
......@@ -104,6 +104,13 @@ test "non-local action produces public:remote topic", %{activity: activity} do
assert Enum.member?(topics, "public:remote:lain.com")
end
test "local action doesn't produce public:remote topic", %{activity: activity} do
activity = %{activity | local: true, actor: "https://lain.com/users/lain"}
topics = Topics.get_activity_topics(activity)
refute Enum.member?(topics, "public:remote:lain.com")
end
end
describe "public visibility create events with attachments" do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment