瀏覽代碼

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

tags/v0.9.9
Martin Kühl 5 年之前
父節點
當前提交
b60d232719
共有 2 個檔案被更改,包括 2 行新增2 行删除
  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 查看文件

@@ -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 查看文件

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



Loading…
取消
儲存