diff --git a/lib/philomena/application.ex b/lib/philomena/application.ex index 198a3f2f..87193f81 100644 --- a/lib/philomena/application.ex +++ b/lib/philomena/application.ex @@ -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]}, diff --git a/lib/philomena/processors/webm.ex b/lib/philomena/processors/webm.ex index 29c446d5..26285668 100644 --- a/lib/philomena/processors/webm.ex +++ b/lib/philomena/processors/webm.ex @@ -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 diff --git a/lib/philomena_web/controllers/channel/nsfw_controller.ex b/lib/philomena_web/controllers/channel/nsfw_controller.ex index 9d6723fc..f695fb4d 100644 --- a/lib/philomena_web/controllers/channel/nsfw_controller.ex +++ b/lib/philomena_web/controllers/channel/nsfw_controller.ex @@ -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