mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
mix format
This commit is contained in:
parent
51518e8f02
commit
98db6a1ca2
3 changed files with 6 additions and 3 deletions
|
@ -24,7 +24,6 @@ defmodule Philomena.Application do
|
|||
Philomena.Servers.PicartoChannelUpdater,
|
||||
Philomena.Servers.PiczelChannelUpdater,
|
||||
Philomena.Servers.Config,
|
||||
|
||||
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)},
|
||||
{Phoenix.PubSub, [name: Philomena.PubSub, adapter: Phoenix.PubSub.PG2]},
|
||||
|
||||
|
|
|
@ -192,5 +192,5 @@ defmodule Philomena.Processors.Webm do
|
|||
|
||||
# Avoid division by zero
|
||||
def rate_filter(duration) when duration > 0.5, do: "fps=1/#{duration / 10},settb=1/2,setpts=N"
|
||||
def rate_filter(duration), do: "setpts=N/TB/2"
|
||||
def rate_filter(_duration), do: "setpts=N/TB/2"
|
||||
end
|
||||
|
|
|
@ -20,6 +20,10 @@ defmodule PhilomenaWeb.Channel.NsfwController do
|
|||
# Duplicated from setting controller
|
||||
defp set_cookie(conn, cookie_name, value) do
|
||||
# JS wants access; max-age is set to 25 years from now
|
||||
Conn.put_resp_cookie(conn, cookie_name, value, max_age: 788_923_800, http_only: false, extra: "SameSite=Lax")
|
||||
Conn.put_resp_cookie(conn, cookie_name, value,
|
||||
max_age: 788_923_800,
|
||||
http_only: false,
|
||||
extra: "SameSite=Lax"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue