Expand subject content automatically when config is set.

This commit is contained in:
Phil Hagelberg 2019-11-05 21:37:46 -08:00
parent bfd5d79826
commit e27c61218d
2 changed files with 8 additions and 1 deletions

View File

@ -38,4 +38,11 @@ def format_date(date) do
end
def instance_name, do: Pleroma.Config.get([:instance, :name], "Pleroma")
def open_content? do
Pleroma.Config.get(
[:frontend_configurations, :collapse_message_with_subjects],
true
)
end
end

View File

@ -5,7 +5,7 @@
<%= render("_user_card.html", %{user: @user}) %>
<div class="activity-content">
<%= if @title != "" do %>
<details>
<details <%= if open_content?() do %>open<% end %>>
<summary><%= raw @title %></summary>
<div class="e-content"><%= raw @content %></div>
</details>