mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 06:55:03 -05:00
FIX: Don't display names on emails if display_name_on_posts is false
Note that `enable_names` was always respected.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<a class="username" href="<%=Discourse.base_url%>/users/<%= post.user.username_lower%>" target="_blank"><%= post.user.username %></a>
|
||||
<%- if SiteSetting.enable_names? && post.user.name.present? && post.user.name != post.user.username %>
|
||||
<%- if show_name_on_post(post) %>
|
||||
<a class="user-name" href="<%=Discourse.base_url%>/users/<%= post.user.username_lower%>" target="_blank"><%= post.user.name %></a>
|
||||
<% end %>
|
||||
<%- if post.user.title.present? %>
|
||||
|
||||
Reference in New Issue
Block a user