Adjust naming of user and model attributes
- Remove unnecessary attributes that cause additional SQL queries - Remove unneeded check for nil on current_item
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<%= yield :html_header %>
|
||||
<%= raw Danbooru.config.custom_html_header_content %>
|
||||
</head>
|
||||
<%= tag.body **body_attributes(CurrentUser.user, (defined?(@current_item) ? @current_item : nil)) do %>
|
||||
<%= tag.body **body_attributes(CurrentUser.user, @current_item) do %>
|
||||
<%= render "news_updates/listing" %>
|
||||
|
||||
<header id="top">
|
||||
|
||||
Reference in New Issue
Block a user