Encapsulation of tags / hashtags fetching from objects.
[akkoma] / test / pleroma / web / common_api_test.exs
index 585b2c174c9564c4aa2ccb408c7847f39374b671..1e98208fb8d996b3268bf0ec7da3de71b9c4a57d 100644 (file)
@@ -493,7 +493,7 @@ defmodule Pleroma.Web.CommonAPITest do
 
     object = Object.normalize(activity)
 
-    assert object.data["tag"] == ["2hu"]
+    assert Object.tags(object) == ["2hu"]
   end
 
   test "it adds emoji in the object" do