projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b7f1c6
)
Fix compatibility with Elixir 1.8
author
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 14 Aug 2019 14:03:25 +0000
(21:03 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 14 Aug 2019 14:03:25 +0000
(21:03 +0700)
lib/pleroma/emails/user_email.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/emails/user_email.ex
b/lib/pleroma/emails/user_email.ex
index bf6b811b1c47515ad53baa4249dff71605f6f6af..3b5e64019c44caec577162382dd0f69d53250437 100644
(file)
--- 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