diff options
author | jomo <git@jomo.tv> | 2017-07-07 02:05:04 +0200 |
---|---|---|
committer | jomo <git@jomo.tv> | 2017-07-07 02:05:04 +0200 |
commit | 8c6eb8ac17de84ebd34bb26652889b4c93b7e75a (patch) | |
tree | fc71e748908497d606ead353268a239dae62ac8e /app/views/forumthreads/index.html.erb | |
parent | 72a6dcc54ad64d1168fbab7bb3d9cd663cc3b012 (diff) |
more fixes for order of threadreplies
Diffstat (limited to 'app/views/forumthreads/index.html.erb')
-rw-r--r-- | app/views/forumthreads/index.html.erb | 2 |
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 |