Insert text representation of hashtags into object["hashtags"]
[akkoma] / test / pleroma / activity / ir / topics_test.exs
index 5e5c2f8dac7d48138931187a147c0685084a9782..eb098ee958ed607c95669fcee5ffc31b75a1767c 100644 (file)
@@ -78,7 +78,7 @@ defmodule Pleroma.Activity.Ir.TopicsTest 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)