Skip to content
Snippets Groups Projects
Unverified Commit af244f8f authored by sau226's avatar sau226 Committed by GitHub
Browse files

Implement suggestions from review

parent 746d2993
No related branches found
No related tags found
2 merge requests!51Upgrade to latest qpixel,!50Update to latest codidact changes
......@@ -196,8 +196,8 @@ class UsersController < ApplicationController
@comments = Comment.joins(:comment_thread, :post).undeleted.where(user: @user, comment_threads: { deleted: false },
posts: { deleted: false }).count
@suggested_edits = SuggestedEdit.where(user: @user).count
@edits = PostHistory.joins(:post).where(user: @user, posts: { deleted: false },
post_history_type: PostHistoryType.find_by(name: 'post_edited')).count
@edits = PostHistory.joins(:post, :post_history_type).where(user: @user, posts: { deleted: false },
post_history_types: { name: 'post_edited' }).count
@all_edits = @suggested_edits + @edits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment