summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-04 15:24:10 +0100
committerlain <lain@soykaf.club>2020-11-04 15:24:10 +0100
commitcb3cd3a761d96a08b1b55f5b277795822aa7e1d7 (patch)
treee3837aa8341cbf99a7857b1dad33459a40a530cb /test
parent329aa19c9f1175f915441c84689860155949bb08 (diff)
downloadpleroma-cb3cd3a761d96a08b1b55f5b277795822aa7e1d7.tar.gz
pleroma-cb3cd3a761d96a08b1b55f5b277795822aa7e1d7.zip
TopicsTest: Small addition.
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/activity/ir/topics_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pleroma/activity/ir/topics_test.exs b/test/pleroma/activity/ir/topics_test.exs
index 2e5655334..5e5c2f8da 100644
--- a/test/pleroma/activity/ir/topics_test.exs
+++ b/test/pleroma/activity/ir/topics_test.exs
@@ -104,6 +104,13 @@ defmodule Pleroma.Activity.Ir.TopicsTest 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