Browse Source

AccountView: `sensitive` is supposed to be a boolean, not a string

tags/v0.9.9
Martin Kühl 5 years ago
parent
commit
b60d232719
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/pleroma/web/mastodon_api/views/account_view.ex
  2. +1
    -1
      test/web/mastodon_api/account_view_test.exs

+ 1
- 1
lib/pleroma/web/mastodon_api/views/account_view.ex View File

@@ -47,7 +47,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
source: %{
note: "",
privacy: user_info.default_scope,
sensitive: "false"
sensitive: false
}
}
end


+ 1
- 1
test/web/mastodon_api/account_view_test.exs View File

@@ -52,7 +52,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
source: %{
note: "",
privacy: "public",
sensitive: "false"
sensitive: false
}
}



Loading…
Cancel
Save