<%= if status_title(@activity) != "" do %>
open<% end %>>
<%= raw status_title(@activity) %>
<%= activity_content(@activity) %>
<% else %>
<%= activity_content(@activity) %>
<% end %>
<%= for %{"name" => name, "url" => [url | _]} <- attachments(@activity) do %>
<%= if sensitive?(@activity) do %>
<%= Gettext.gettext("sensitive media") %>
<%= render("_attachment.html", %{name: name, url: url["href"],
mediaType: fetch_media_type(url)}) %>
<% else %>
<%= render("_attachment.html", %{name: name, url: url["href"],
mediaType: fetch_media_type(url)}) %>
<% end %>
<% end %>