Remove extra space from mentions for reply

This commit is contained in:
Shadowfacts 2020-05-25 19:30:00 -04:00
parent de7a1e617d
commit aae48b2500
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 7 additions and 2 deletions

View File

@ -121,9 +121,14 @@ defmodule ClacksWeb.FrontendView do
actor = Actor.get_cached_by_ap_id(ap_id)
"@#{actor.nickname}"
end)
|> Enum.join(" ")
"#{mentions} "
case mentions do
[] ->
""
_ ->
Enum.join(mentions, " ") <> ""
end
end
defp mentions_for_replying_to(_), do: ""