mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:43:40 +08:00
FIX: nil
error in list, incorrect count in reviewable pending
This commit is contained in:
parent
3f9ec197e7
commit
a8e3ac90a0
|
@ -75,7 +75,7 @@
|
|||
<span class='posts' title='<%= t 'posts' %>'><%= t.posts_count %></span>
|
||||
</td>
|
||||
<td>
|
||||
<%= I18n.l(t.last_posted_at, format: :date_only) %>
|
||||
<%= I18n.l(t.last_posted_at || t.created_at, format: :date_only) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
|
@ -233,7 +233,7 @@ class NewPostManager
|
|||
result.reviewable = reviewable
|
||||
result.reason = reason if reason
|
||||
result.check_errors(errors)
|
||||
result.pending_count = Reviewable.where(created_by: @user).pending.count
|
||||
result.pending_count = ReviewableQueuedPost.where(created_by: @user).pending.count
|
||||
result
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user