summaryrefslogtreecommitdiff
path: root/app/views/forumthreads/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/forumthreads/index.html.erb')
-rw-r--r--app/views/forumthreads/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/forumthreads/index.html.erb b/app/views/forumthreads/index.html.erb
index 02e425b..0c44352 100644
--- a/app/views/forumthreads/index.html.erb
+++ b/app/views/forumthreads/index.html.erb
@@ -60,7 +60,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