Преглед на файлове

fixes after rebase

1668/default-disable-prometheus
Alexander Strizhakov преди 3 години
родител
ревизия
b081080dd9
No known key found for this signature in database GPG Key ID: 22896A53AEF1381
променени са 5 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. +2
    -2
      lib/pleroma/web/endpoint.ex
  2. +1
    -1
      lib/pleroma/web/plugs/frontend_static.ex
  3. +1
    -1
      lib/pleroma/web/plugs/instance_static.ex
  4. +1
    -1
      test/mix/tasks/pleroma/frontend_test.exs
  5. +0
    -0
      test/pleroma/web/activity_pub/transmogrifier/event_handling_test.exs

+ 2
- 2
lib/pleroma/web/endpoint.ex Целия файл

@@ -29,7 +29,7 @@ defmodule Pleroma.Web.Endpoint do
)

# Careful! No `only` restriction here, as we don't know what frontends contain.
plug(Pleroma.Plugs.FrontendStatic,
plug(Pleroma.Web.Plugs.FrontendStatic,
at: "/",
frontend_type: :primary,
gzip: true,
@@ -41,7 +41,7 @@ defmodule Pleroma.Web.Endpoint do

plug(Plug.Static.IndexHtml, at: "/pleroma/admin/")

plug(Pleroma.Plugs.FrontendStatic,
plug(Pleroma.Web.Plugs.FrontendStatic,
at: "/pleroma/admin",
frontend_type: :admin,
gzip: true,


lib/pleroma/plugs/frontend_static.ex → lib/pleroma/web/plugs/frontend_static.ex Целия файл

@@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.FrontendStatic do
defmodule Pleroma.Web.Plugs.FrontendStatic do
require Pleroma.Constants

@moduledoc """

+ 1
- 1
lib/pleroma/web/plugs/instance_static.ex Целия файл

@@ -16,7 +16,7 @@ defmodule Pleroma.Web.Plugs.InstanceStatic do
instance_path =
Path.join(Pleroma.Config.get([:instance, :static_dir], "instance/static/"), path)

frontend_path = Pleroma.Plugs.FrontendStatic.file_path(path, :primary)
frontend_path = Pleroma.Web.Plugs.FrontendStatic.file_path(path, :primary)

(File.exists?(instance_path) && instance_path) ||
(frontend_path && File.exists?(frontend_path) && frontend_path) ||


+ 1
- 1
test/mix/tasks/pleroma/frontend_test.exs Целия файл

@@ -2,7 +2,7 @@
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.FrontendTest do
defmodule Mix.Tasks.Pleroma.FrontendTest do
use Pleroma.DataCase
alias Mix.Tasks.Pleroma.Frontend



test/web/activity_pub/transmogrifier/event_handling_test.exs → test/pleroma/web/activity_pub/transmogrifier/event_handling_test.exs Целия файл


Loading…
Отказ
Запис