Merge branch 'fix/reverse-proxy-no-body-connection-leak' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Mon, 27 Jul 2020 08:20:46 +0000 (08:20 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Mon, 27 Jul 2020 08:20:46 +0000 (08:20 +0000)
ReverseProxy: Fix a gun connection leak when there is an error with no body

See merge request pleroma/pleroma!2798

config/description.exs
lib/pleroma/web/api_spec/operations/chat_operation.ex

index e4850218e1b5ff11b1422f78f3d4e81fab6d71e3..a5e66f3fb69a3ccd37ec71729142d43ced025e63 100644 (file)
@@ -2235,13 +2235,13 @@ config :pleroma, :config_description, [
     children: [
       %{
         key: :class,
-        type: [:string, false],
+        type: [:string, :boolean],
         description: "Specify the class to be added to the generated link. Disable to clear.",
         suggestions: ["auto-linker", false]
       },
       %{
         key: :rel,
-        type: [:string, false],
+        type: [:string, :boolean],
         description: "Override the rel attribute. Disable to clear.",
         suggestions: ["ugc", "noopener noreferrer", false]
       },
@@ -2252,7 +2252,7 @@ config :pleroma, :config_description, [
       },
       %{
         key: :truncate,
-        type: [:integer, false],
+        type: [:integer, :boolean],
         description:
           "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
         suggestions: [15, false]
index cf299bfc264a39cbe05ed9fc554095bf1b7a45ad..b1a0d26ab6e51f3315db9e7508c19717c6b91eef 100644 (file)
@@ -300,11 +300,11 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
           "content" => "Check this out :firefox:",
           "id" => "13",
           "chat_id" => "1",
-          "actor_id" => "someflakeid",
+          "account_id" => "someflakeid",
           "unread" => false
         },
         %{
-          "actor_id" => "someflakeid",
+          "account_id" => "someflakeid",
           "content" => "Whats' up?",
           "id" => "12",
           "chat_id" => "1",