AccountView: `sensitive` is supposed to be a boolean, not a string
authorMartin Kühl <martin.kuehl@gmail.com>
Tue, 28 Aug 2018 22:51:25 +0000 (00:51 +0200)
committerMartin Kühl <martin.kuehl@gmail.com>
Sat, 1 Sep 2018 21:10:48 +0000 (23:10 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex
test/web/mastodon_api/account_view_test.exs

index 7bc32e688ffc180e7318b25c226e1473e3c65044..fb42e82c89c07d7d152127b058b167d0030f9a24 100644 (file)
@@ -47,7 +47,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
       source: %{
         note: "",
         privacy: user_info.default_scope,
-        sensitive: "false"
+        sensitive: false
       }
     }
   end
index 35c8a1fb081c961d41e3a9916a765ec1bda0db90..222c2d54968ad1862e0bf550fa241046bdbf829e 100644 (file)
@@ -52,7 +52,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
       source: %{
         note: "",
         privacy: "public",
-        sensitive: "false"
+        sensitive: false
       }
     }