children: frontend_options
},
%{
- key: :pickable,
- type: {:list, :string},
- description:
- "A list containing all frontends users can pick as their preference, format is :name/:ref, e.g pleroma-fe/stable."
+ key: :pickable,
+ type: {:list, :string},
+ description:
+ "A list containing all frontends users can pick as their preference, format is :name/:ref, e.g pleroma-fe/stable."
}
]
},
params
)
|> limit(20)
-
+
Ecto.Adapters.SQL.explain(Repo, :all, query, analyze: true, timeout: :infinity)
- |> IO.puts()
+ |> IO.puts()
end
end
alias Pleroma.Activity
alias Pleroma.Delivery
alias Pleroma.Object
- alias Pleroma.Object.Fetcher
alias Pleroma.User
alias Pleroma.Web.ActivityPub.ActivityPub
alias Pleroma.Web.ActivityPub.InternalFetchActor
defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
use Pleroma.Web, :controller
- alias Pleroma.Config
- alias Pleroma.Stats
- alias Pleroma.User
- alias Pleroma.Web.Federator.Publisher
- alias Pleroma.Web.MastodonAPI.InstanceView
alias Pleroma.Web.Endpoint
alias Pleroma.Web.Nodeinfo.Nodeinfo
font_src = "font-src 'self'"
script_src = "script-src 'self' '#{nonce_tag}' "
- script_src = if @mix_env == :dev do
- "script-src 'self' 'unsafe-eval' 'unsafe-inline'"
- else
- script_src
- end
+
+ script_src =
+ if @mix_env == :dev do
+ "script-src 'self' 'unsafe-eval' 'unsafe-inline'"
+ else
+ script_src
+ end
report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"]
insecure = if scheme == "https", do: "upgrade-insecure-requests"
test "should not return 404 if local is specified" do
clear_config([:instance, :federated_timeline_available], false)
- result =
- build_conn()
- |> get("/api/v1/timelines/public?local=true")
- |> json_response_and_validate_schema(200)
+ build_conn()
+ |> get("/api/v1/timelines/public?local=true")
+ |> json_response_and_validate_schema(200)
end
end