projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Insert text representation of hashtags into object["hashtags"]
[akkoma]
/
test
/
pleroma
/
activity
/
ir
/
topics_test.exs
diff --git
a/test/pleroma/activity/ir/topics_test.exs
b/test/pleroma/activity/ir/topics_test.exs
index 5e5c2f8dac7d48138931187a147c0685084a9782..eb098ee958ed607c95669fcee5ffc31b75a1767c 100644
(file)
--- a/
test/pleroma/activity/ir/topics_test.exs
+++ b/
test/pleroma/activity/ir/topics_test.exs
@@
-78,7
+78,7
@@
defmodule Pleroma.Activity.Ir.TopicsTest do
end
test "converts tags to hash tags", %{activity: %{object: %{data: data} = object} = activity} do
end
test "converts tags to hash tags", %{activity: %{object: %{data: data} = object} = activity} do
- tagged_data = Map.put(data, "
tag
", ["foo", "bar"])
+ tagged_data = Map.put(data, "
hashtags
", ["foo", "bar"])
activity = %{activity | object: %{object | data: tagged_data}}
topics = Topics.get_activity_topics(activity)
activity = %{activity | object: %{object | data: tagged_data}}
topics = Topics.get_activity_topics(activity)