summaryrefslogtreecommitdiff
path: root/app/views/forums/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/forums/show.html.erb')
-rw-r--r--app/views/forums/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index b232292..cfe3918 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -38,7 +38,7 @@
<div class="item <%= "#{"locked" if thread.locked}#{"sticky" if thread.sticky}" %>">
<%= render partial: "labels/label", locals: {label: thread.label} %><%= link_to truncate(thread.title, length: 60, omission: " …"), forumthread_path(thread), title: thread.title %>
<div class="item-info">
- <% if rpl = thread.replies.last %>
+ <% if rpl = thread.replies.order(:id).last %>
<%= rpl.author.name %>
<%
position = thread.replies.count - 1