From: Alex Gleason <alex@alexgleason.me>
Date: Thu, 8 Oct 2020 20:44:48 +0000 (-0500)
Subject: Merge remote-tracking branch 'upstream/develop' into aliases
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=77b1ea68a7700ac4a78c7f2e0ea9f118441d23da;p=akkoma

Merge remote-tracking branch 'upstream/develop' into aliases
---

77b1ea68a7700ac4a78c7f2e0ea9f118441d23da
diff --cc test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs
index 467110f3b,2e6704726..2da951048
--- 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,18 -214,12 +214,22 @@@ defmodule Pleroma.Web.MastodonAPI.Masto
  
        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 AKAs", %{conn: conn} do
 +      conn =
 +        patch(conn, "/api/v1/accounts/update_credentials", %{
 +          "also_known_as" => ["https://mushroom.kingdom/users/mario"]
 +        })
 +
 +      assert user_data = json_response_and_validate_schema(conn, 200)
 +      assert user_data["pleroma"]["also_known_as"] == ["https://mushroom.kingdom/users/mario"]
 +    end
 +
      test "updates the user's avatar", %{user: user, conn: conn} do
        new_avatar = %Plug.Upload{
          content_type: "image/jpg",
diff --cc test/web/mastodon_api/views/account_view_test.exs
index bbf7b33a8,a5f39b215..20e4d5070
--- a/test/web/mastodon_api/views/account_view_test.exs
+++ b/test/web/mastodon_api/views/account_view_test.exs
@@@ -78,10 -75,8 +76,9 @@@ defmodule Pleroma.Web.MastodonAPI.Accou
        },
        pleroma: %{
          ap_id: user.ap_id,
 +        also_known_as: ["https://shitposter.zone/users/shp"],
          background_image: "https://example.com/images/asuka_hospital.png",
-         favicon:
-           "https://shitposter.club/plugins/Qvitter/img/gnusocial-favicons/favicon-16x16.png",
+         favicon: nil,
          confirmation_pending: false,
          tags: [],
          is_admin: false,
@@@ -174,10 -173,8 +175,9 @@@
        },
        pleroma: %{
          ap_id: user.ap_id,
 +        also_known_as: [],
          background_image: nil,
-         favicon:
-           "https://shitposter.club/plugins/Qvitter/img/gnusocial-favicons/favicon-16x16.png",
+         favicon: nil,
          confirmation_pending: false,
          tags: [],
          is_admin: false,