mix format

This commit is contained in:
byte[] 2020-05-27 13:01:35 -04:00
parent 51518e8f02
commit 98db6a1ca2
3 changed files with 6 additions and 3 deletions

View file

@ -24,7 +24,6 @@ defmodule Philomena.Application do
Philomena.Servers.PicartoChannelUpdater, Philomena.Servers.PicartoChannelUpdater,
Philomena.Servers.PiczelChannelUpdater, Philomena.Servers.PiczelChannelUpdater,
Philomena.Servers.Config, Philomena.Servers.Config,
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)}, {Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)},
{Phoenix.PubSub, [name: Philomena.PubSub, adapter: Phoenix.PubSub.PG2]}, {Phoenix.PubSub, [name: Philomena.PubSub, adapter: Phoenix.PubSub.PG2]},

View file

@ -192,5 +192,5 @@ defmodule Philomena.Processors.Webm do
# Avoid division by zero # 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) 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 end

View file

@ -20,6 +20,10 @@ defmodule PhilomenaWeb.Channel.NsfwController do
# Duplicated from setting controller # Duplicated from setting controller
defp set_cookie(conn, cookie_name, value) do defp set_cookie(conn, cookie_name, value) do
# JS wants access; max-age is set to 25 years from now # 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
end end