[#161] Limited replies depth on incoming federation in order to prevent memory leaks on recursive replies fetching.
This commit is contained in:
parent
9b1e75bac8
commit
5b7b1040b3
8 changed files with 181 additions and 84 deletions
|
|
@ -22,6 +22,12 @@ defmodule Pleroma.Web.Federator do
|
|||
refresh_subscriptions()
|
||||
end
|
||||
|
||||
@max_replies_depth 100
|
||||
|
||||
@doc "Addresses [memory leaks on recursive replies fetching](https://git.pleroma.social/pleroma/pleroma/issues/161)"
|
||||
# credo:disable-for-previous-line Credo.Check.Readability.MaxLineLength
|
||||
def max_replies_depth, do: @max_replies_depth
|
||||
|
||||
# Client API
|
||||
|
||||
def incoming_doc(doc) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue