aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-10 10:33:05 +0200
committerlain <lain@soykaf.club>2020-08-10 10:33:05 +0200
commit66122a11b59a3859f3eb67066148e9c75139d3ee (patch)
treebdf5fb16cf34b7fa4f180c1efdef0524c30be11e /test
parent0149dd01469b7c52f4abe173157b8b5cc4442ff6 (diff)
downloadpleroma-66122a11b59a3859f3eb67066148e9c75139d3ee.tar.gz
AccountController: Build the correct update activity.
Will fix federation issues.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs b/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs
index b888e4c71..2e6704726 100644
--- a/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs
+++ b/test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs
@@ -214,6 +214,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
assert user_data = json_response_and_validate_schema(conn, 200)
assert user_data["display_name"] == "markorepairs"
+
+ update_activity = Repo.one(Pleroma.Activity)
+ assert update_activity.data["type"] == "Update"
+ assert update_activity.data["object"]["name"] == "markorepairs"
end
test "updates the user's avatar", %{user: user, conn: conn} do