Refactor Mobilizon.Federation.ActivityPub and add typespecs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -13,8 +13,10 @@ defmodule Mobilizon.Web.Plugs.HTTPSecurityPlug do
|
||||
|
||||
require Logger
|
||||
|
||||
@spec init(any()) :: any()
|
||||
def init(opts), do: opts
|
||||
|
||||
@spec call(Plug.Conn.t(), Keyword.t()) :: Plug.Conn.t()
|
||||
def call(conn, options \\ []) do
|
||||
if Config.get([:http_security, :enabled]) do
|
||||
conn
|
||||
|
||||
Reference in New Issue
Block a user