Browse Source

Remove extra space from mentions for reply

master
Shadowfacts 1 year ago
parent
commit
aae48b2500
Signed by: shadowfacts GPG Key ID: 94A5AB95422746E5
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      lib/clacks_web/views/frontend_view.ex

+ 7
- 2
lib/clacks_web/views/frontend_view.ex 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: ""


Loading…
Cancel
Save