From 55179d42147eb69e49d6f2102817ceff988805cb Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 11 Aug 2022 10:25:03 +0100 Subject: [PATCH] set soapbox-fe v2 by default fixes #157 --- config/config.exs | 2 +- lib/pleroma/web/plugs/http_signature_plug.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.exs b/config/config.exs index 947ff0ecc..f49ec861c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -746,7 +746,7 @@ config :pleroma, :frontends, "git" => "https://gitlab.com/soapbox-pub/soapbox-fe", "build_url" => "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/${ref}/download?job=build-production", - "ref" => "v1.0.0", + "ref" => "v2.0.0", "build_dir" => "static" }, # For developers - enables a swagger frontend to view the openapi spec diff --git a/lib/pleroma/web/plugs/http_signature_plug.ex b/lib/pleroma/web/plugs/http_signature_plug.ex index 79030be5f..cfee392c8 100644 --- a/lib/pleroma/web/plugs/http_signature_plug.ex +++ b/lib/pleroma/web/plugs/http_signature_plug.ex @@ -27,7 +27,7 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do end end - def route_aliases(%{path_info: ["objects", id]} = conn) do + def route_aliases(%{path_info: ["objects", id]}) do ap_id = Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :object, id) with %Activity{} = activity <- Activity.get_by_object_ap_id_with_object(ap_id) do