Add undocumented default user default settings.
authorRoger Braun <roger@rogerbraun.net>
Sat, 16 Sep 2017 09:52:33 +0000 (11:52 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sat, 16 Sep 2017 09:52:33 +0000 (11:52 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex
test/web/mastodon_api/account_view_test.exs

index 68d930a68c1f0040f35e2bc0ec90a07234f746d8..ff02587d66d6fbe9428d5444c33c0e4166db6e5b 100644 (file)
@@ -32,7 +32,12 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
       avatar: image,
       avatar_static: image,
       header: header,
-      header_static: header
+      header_static: header,
+      source: %{
+        note: "",
+        privacy: "public",
+        sensitive: "false"
+      }
     }
   end
 
index 8a7727369a3588144181a485f079e0c5d9749f75..aa74ed9668a8d940ed794c904c8139715b0c0af5 100644 (file)
@@ -22,7 +22,12 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
       avatar: "https://placehold.it/48x48",
       avatar_static: "https://placehold.it/48x48",
       header: "https://placehold.it/700x335",
-      header_static: "https://placehold.it/700x335"
+      header_static: "https://placehold.it/700x335",
+      source: %{
+        note: "",
+        privacy: "public",
+        sensitive: "false"
+      }
     }
 
     assert expected == AccountView.render("account.json", %{user: user})