From: Egor Kislitsyn Date: Mon, 9 Dec 2019 17:16:43 +0000 (+0700) Subject: Merge branch 'develop' into feature/custom-runtime-modules X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c098dec47344303bc00456bfbfc0d769abd8f199;p=akkoma Merge branch 'develop' into feature/custom-runtime-modules --- c098dec47344303bc00456bfbfc0d769abd8f199 diff --cc CHANGELOG.md index 6564cf40a,89044d046..5528845d6 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -45,7 -48,7 +48,8 @@@ The format is based on [Keep a Changelo - Mix task to list all users (`mix pleroma.user list`) - Support for `X-Forwarded-For` and similar HTTP headers which used by reverse proxies to pass a real user IP address to the backend. Must not be enabled unless your instance is behind at least one reverse proxy (such as Nginx, Apache HTTPD or Varnish Cache). - MRF: New module which handles incoming posts based on their age. By default, all incoming posts that are older than 2 days will be unlisted and not shown to their followers. + - User notification settings: Add `privacy_option` option. +- Support for custom Elixir modules (such as MRF policies)
API Changes diff --cc lib/pleroma/application.ex index f47cb0ce9,5b844aa41..2ae052069 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@@ -31,9 -30,9 +31,10 @@@ defmodule Pleroma.Application d # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do + Pleroma.HTML.compile_scrubbers() Pleroma.Config.DeprecationWarnings.warn() setup_instrumenters() + load_custom_modules() # Define workers and child supervisors to be supervised children = diff --cc lib/pleroma/web/endpoint.ex index 5fcce7ca2,bbea31682..d32c38a05 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@@ -59,16 -59,9 +59,9 @@@ defmodule Pleroma.Web.Endpoint d plug(Pleroma.Plugs.TrailingFormatPlug) plug(Plug.RequestId) - plug(Plug.Logger) + plug(Plug.Logger, log: :debug) - plug( - Plug.Parsers, - parsers: [:urlencoded, :multipart, :json], - pass: ["*/*"], - json_decoder: Jason, - length: Pleroma.Config.get([:instance, :upload_limit]), - body_reader: {Pleroma.Web.Plugs.DigestPlug, :read_body, []} - ) + plug(Pleroma.Plugs.Parsers) plug(Plug.MethodOverride) plug(Plug.Head)