Fix instance terms when contact is undefined
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
85fe326e20
commit
6981b54679
@ -316,6 +316,9 @@ defmodule Mobilizon.Config do
|
|||||||
contact = contact()
|
contact = contact()
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
|
is_nil(contact) ->
|
||||||
|
nil
|
||||||
|
|
||||||
String.contains?(contact, "@") ->
|
String.contains?(contact, "@") ->
|
||||||
"<a href=\"mailto:#{contact}\">#{contact}</a>"
|
"<a href=\"mailto:#{contact}\">#{contact}</a>"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user