diff --git a/app/views/words/_journal_reply_items.html.erb b/app/views/words/_journal_reply_items.html.erb index 7b7bd359c..d2c94b094 100644 --- a/app/views/words/_journal_reply_items.html.erb +++ b/app/views/words/_journal_reply_items.html.erb @@ -12,8 +12,9 @@ <% id = 'project_respond_form_'+ reply.id.to_s %> <%= link_to reply.user.name, user_path(reply.user) %> 回复 - <% if show_name %> - <%= link_to reply.at_user.name,user_path(reply.at_user) %> + <% parent_jour = JournalsForMessage.find reply.m_reply_id %> + <% if show_name && parent_jour %> + <%= link_to parent_jour.user.name,user_path(parent_jour.user) %> <% else %> <%= l(:label_anonymous) %> <% end %>