projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329aa19
)
TopicsTest: Small addition.
author
lain
<lain@soykaf.club>
Wed, 4 Nov 2020 14:24:10 +0000
(15:24 +0100)
committer
lain
<lain@soykaf.club>
Wed, 4 Nov 2020 14:24:10 +0000
(15:24 +0100)
test/pleroma/activity/ir/topics_test.exs
patch
|
blob
|
history
diff --git
a/test/pleroma/activity/ir/topics_test.exs
b/test/pleroma/activity/ir/topics_test.exs
index 2e5655334d57951a7ca8b2171915ef18715b59c4..5e5c2f8dac7d48138931187a147c0685084a9782 100644
(file)
--- 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