Remove extra space from mentions for reply
This commit is contained in:
parent
de7a1e617d
commit
aae48b2500
|
@ -121,9 +121,14 @@ defmodule ClacksWeb.FrontendView do
|
||||||
actor = Actor.get_cached_by_ap_id(ap_id)
|
actor = Actor.get_cached_by_ap_id(ap_id)
|
||||||
"@#{actor.nickname}"
|
"@#{actor.nickname}"
|
||||||
end)
|
end)
|
||||||
|> Enum.join(" ")
|
|
||||||
|
|
||||||
"#{mentions} "
|
case mentions do
|
||||||
|
[] ->
|
||||||
|
""
|
||||||
|
|
||||||
|
_ ->
|
||||||
|
Enum.join(mentions, " ") <> ""
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp mentions_for_replying_to(_), do: ""
|
defp mentions_for_replying_to(_), do: ""
|
||||||
|
|
Loading…
Reference in New Issue