create_service_actor is now type Application
[akkoma] / test / pleroma / web / activity_pub / relay_test.exs
index d6de7d61e9a5832c45e5e5013ef91c36129aa6f7..0bbfc316b905fabc7aba7292441cdccf46aa9f48 100644 (file)
@@ -19,6 +19,12 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do
     assert user.ap_id == "#{Pleroma.Web.Endpoint.url()}/relay"
   end
 
+  test "relay actor is an application" do
+    # See <https://www.w3.org/TR/activitystreams-vocabulary/#dfn-application>
+    user = Relay.get_actor()
+    assert user.actor_type == "Application"
+  end
+
   test "relay actor is invisible" do
     user = Relay.get_actor()
     assert User.invisible?(user)