TopicsTest: Small addition.

This commit is contained in:
lain 2020-11-04 15:24:10 +01:00
parent 329aa19c9f
commit cb3cd3a761

View File

@ -104,6 +104,13 @@ defmodule Pleroma.Activity.Ir.TopicsTest do
assert Enum.member?(topics, "public:remote:lain.com") assert Enum.member?(topics, "public:remote:lain.com")
end 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 end
describe "public visibility create events with attachments" do describe "public visibility create events with attachments" do