|
|
|
@ -33,7 +33,7 @@ class GamesService
|
|
|
|
|
st = game_challenge.st
|
|
|
|
|
game_count = myshixun.games.count
|
|
|
|
|
discusses_count = (current_user.admin? ? shixun.discusses.count :
|
|
|
|
|
shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id))
|
|
|
|
|
shixun.discusses.where("hidden = false or user_id = :user_id", user_id: current_user.id).count)
|
|
|
|
|
mirror_name = myshixun.mirror_name
|
|
|
|
|
user = myshixun.owner
|
|
|
|
|
username = user.show_name
|
|
|
|
|