diff options
author | Martin Kühl <martin.kuehl@gmail.com> | 2018-08-29 00:51:25 +0200 |
---|---|---|
committer | Martin Kühl <martin.kuehl@gmail.com> | 2018-09-01 23:10:48 +0200 |
commit | b60d2327199965a165c8456a487f929f9ef56651 (patch) | |
tree | 5e6fd073f7324fc9fb4b6ddcec8b0315c04a57b7 | |
parent | 2e2f4587050da652fb0c4b8822d912301a8be273 (diff) | |
download | pleroma-b60d2327199965a165c8456a487f929f9ef56651.tar.gz pleroma-b60d2327199965a165c8456a487f929f9ef56651.zip |
AccountView: `sensitive` is supposed to be a boolean, not a string
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 2 | ||||
-rw-r--r-- | test/web/mastodon_api/account_view_test.exs | 2 |
2 files changed, 2 insertions, 2 deletions
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 } } |