diff --git a/lib/clacks_web/views/frontend_view.ex b/lib/clacks_web/views/frontend_view.ex index 220878d..62c266b 100644 --- a/lib/clacks_web/views/frontend_view.ex +++ b/lib/clacks_web/views/frontend_view.ex @@ -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: ""