Commit 2858fd2d authored by rinpatch's avatar rinpatch
Browse files

add a fallback function

parent 6f231398
......@@ -57,7 +57,9 @@ defp opengraph_tags(%{user: user}) do
]
end
end
defp opengraph_tags(_) do
[]
end
def to_tag(data) do
with {name, attrs, _content = []} <- data do
HTML.Tag.tag(name, attrs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment