Fix dialyzer errors due to deprecated usage of put_layout/2
This commit is contained in:
parent
97c4d3bcc9
commit
518a38577b
@ -11,8 +11,6 @@ defmodule Pleroma.Web.EmbedController do
|
||||
|
||||
alias Pleroma.Web.ActivityPub.Visibility
|
||||
|
||||
plug(:put_layout, :embed)
|
||||
|
||||
def show(conn, %{"id" => id}) do
|
||||
with %Activity{local: true} = activity <-
|
||||
Activity.get_by_id_with_object(id),
|
||||
|
@ -112,7 +112,6 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
||||
%{data: %{"attachment" => [%{"url" => [url | _]} | _]}} <- object,
|
||||
true <- String.starts_with?(url["mediaType"], ["audio", "video"]) do
|
||||
conn
|
||||
|> put_layout(:metadata_player)
|
||||
|> put_resp_header("x-frame-options", "ALLOW")
|
||||
|> put_resp_header(
|
||||
"content-security-policy",
|
||||
|
@ -13,7 +13,6 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
|
||||
alias Pleroma.Web.Metadata
|
||||
alias Pleroma.Web.Router.Helpers
|
||||
|
||||
plug(:put_layout, :static_fe)
|
||||
plug(:assign_id)
|
||||
|
||||
@page_keys ["max_id", "min_id", "limit", "since_id", "order"]
|
||||
|
Loading…
Reference in New Issue
Block a user