add make test and Remove vue-cli serve

This commit is contained in:
Vincent
2019-04-17 17:13:20 +02:00
committed by Thomas Citharel
parent e1e410d595
commit ff7fd460f0
14 changed files with 47 additions and 79 deletions

View File

@@ -4,13 +4,6 @@ defimpl Mobilizon.Service.Metadata, for: Mobilizon.Events.Comment do
alias Mobilizon.Events.Comment
def build_tags(%Comment{} = comment) do
comment
|> do_build_tags()
|> Enum.map(&HTML.safe_to_string/1)
|> Enum.reduce("", fn tag, acc -> acc <> tag end)
end
defp do_build_tags(%Comment{} = comment) do
[
Tag.tag(:meta, property: "og:title", content: comment.actor.preferred_username),
Tag.tag(:meta, property: "og:url", content: comment.url),