Merge branch 'remove-swift' into 'develop'
[akkoma] / lib / pleroma / web / ostatus / handlers / note_handler.ex
index 6f8f3ddcbba0015e22bcde1b503df713848e79ff..8e0adad91f38b7c87008f37b932e426934eb0dd8 100644 (file)
@@ -94,7 +94,7 @@ defmodule Pleroma.Web.OStatus.NoteHandler do
       activity
     else
       _e ->
-        with true <- (options[:depth] || 1) <= Federator.max_replies_depth(),
+        with true <- Federator.allowed_incoming_reply_depth?(options[:depth]),
              in_reply_to_href when not is_nil(in_reply_to_href) <-
                XML.string_from_xpath("//thr:in-reply-to[1]/@href", entry),
              {:ok, [activity | _]} <- OStatus.fetch_activity_from_url(in_reply_to_href, options) do