From: Martin Kühl Date: Tue, 28 Aug 2018 22:51:25 +0000 (+0200) Subject: AccountView: `sensitive` is supposed to be a boolean, not a string X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b60d2327199965a165c8456a487f929f9ef56651;p=akkoma AccountView: `sensitive` is supposed to be a boolean, not a string --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 7bc32e688..fb42e82c8 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -47,7 +47,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do source: %{ note: "", privacy: user_info.default_scope, - sensitive: "false" + sensitive: false } } end diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs index 35c8a1fb0..222c2d549 100644 --- a/test/web/mastodon_api/account_view_test.exs +++ b/test/web/mastodon_api/account_view_test.exs @@ -52,7 +52,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do source: %{ note: "", privacy: "public", - sensitive: "false" + sensitive: false } }