浏览代码

web endpoint: Use Config.get directly instead of a tuple

Fixes a lot of warnings like the following while running the testsuite:

  warning: passing a {module, function, args} tuple to Plug.Parsers.MULTIPART is deprecated. Please see Plug.Parsers.MULTIPART module docs for better approaches to configuration

This might mean no more dynamic configuration but there seems to be the same limitation two lines underneath anyway.
features/ingestion-unfollow
Haelwenn (lanodan) Monnier 3 年前
父节点
当前提交
7d350b73f5
找不到此签名对应的密钥 GPG 密钥 ID: D5B7A8E43C997DEE
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/pleroma/web/endpoint.ex

+ 1
- 1
lib/pleroma/web/endpoint.ex 查看文件

@@ -102,7 +102,7 @@ defmodule Pleroma.Web.Endpoint do
plug(Plug.Parsers,
parsers: [
:urlencoded,
{:multipart, length: {Config, :get, [[:instance, :upload_limit]]}},
{:multipart, length: Config.get([:instance, :upload_limit])},
:json
],
pass: ["*/*"],


正在加载...
取消
保存