diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-08-14 21:03:25 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-08-14 21:03:25 +0700 |
commit | c9970feee20f25375223e5f4a32bdbcff7b98607 (patch) | |
tree | c4fc543068335c0fe5c7adcb45dd15f6293553e4 | |
parent | 4b7f1c6995ca49c782e3e29d14245f18d4d11430 (diff) | |
download | pleroma-c9970feee20f25375223e5f4a32bdbcff7b98607.tar.gz pleroma-c9970feee20f25375223e5f4a32bdbcff7b98607.zip |
Fix compatibility with Elixir 1.8
-rw-r--r-- | lib/pleroma/emails/user_email.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/emails/user_email.ex b/lib/pleroma/emails/user_email.ex index bf6b811b1..3b5e64019 100644 --- a/lib/pleroma/emails/user_email.ex +++ b/lib/pleroma/emails/user_email.ex @@ -154,7 +154,7 @@ defmodule Pleroma.Emails.UserEmail do defp format_links(str) do re = ~r/<a.+href=['"].*>/iU - String.replace(str, re, fn link -> + Regex.replace(re, str, fn link -> String.replace(link, "<a", "<a style=\"color: #d8a070;text-decoration: none;\"") end) end |