diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d98af39aea..e2e5bd487c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -127,6 +127,8 @@ def profile .limit(20) @wikis = wikis.collect(&:parent).uniq + @comment_count = Comment.where(status: 0, uid: @user.uid).count + # User's social links @github = @profile_user.social_link("github") @twitter = @profile_user.social_link("twitter") diff --git a/app/views/users/profile.html.erb b/app/views/users/profile.html.erb index 4a24f861d6..74eefdd83e 100644 --- a/app/views/users/profile.html.erb +++ b/app/views/users/profile.html.erb @@ -168,12 +168,14 @@