* disconnect working again VRFS-3454

This commit is contained in:
Seth Call 2016-02-08 11:45:11 -06:00
parent eb8e330073
commit 1467b2b0e7
1 changed files with 21 additions and 0 deletions

View File

@ -37,3 +37,24 @@ if @show_teacher_profile && @profile && @profile.teacher
partial("api_teachers/detail", :object => @profile.teacher)
end
end
if current_user && @profile != current_user
node :is_friend do |uu|
current_user.friends?(uu)
end
node :is_following do |uu|
current_user.following?(uu)
end
node :is_liking do |uu|
current_user.likes?(uu)
end
node :pending_friend_request do |uu|
current_user.pending_friend_request?(uu)
end
node :my_audio_latency do |user|
current_user.last_jam_audio_latency.round if current_user.last_jam_audio_latency
end
node :internet_score do |user|
current_user.score_info(user)
end
end