[Credo] fix Credo.Check.Readability.MaxLineLength
This commit is contained in:
parent
8cd3eada7d
commit
c42d34b2ec
17 changed files with 41 additions and 25 deletions
|
|
@ -82,8 +82,8 @@ defmodule Pleroma.Web.Push.Subscription do
|
|||
end
|
||||
|
||||
# Some webpush clients (e.g. iOS Toot!) use an non urlsafe base64 as an encoding for the key.
|
||||
# However, the web push rfs specify to use base64 urlsafe, and the `web_push_encryption` library we use
|
||||
# requires the key to be properly encoded. So we just convert base64 to urlsafe base64.
|
||||
# However, the web push rfs specify to use base64 urlsafe, and the `web_push_encryption` library
|
||||
# we use requires the key to be properly encoded. So we just convert base64 to urlsafe base64.
|
||||
defp ensure_base64_urlsafe(string) do
|
||||
string
|
||||
|> String.replace("+", "-")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue