From 1467b2b0e7af943dc024d2932db1fe88a76720f3 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Mon, 8 Feb 2016 11:45:11 -0600 Subject: [PATCH] * disconnect working again VRFS-3454 --- web/app/views/api_users/profile_show.rabl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web/app/views/api_users/profile_show.rabl b/web/app/views/api_users/profile_show.rabl index e0ca56d9c..cf8a4c4d5 100644 --- a/web/app/views/api_users/profile_show.rabl +++ b/web/app/views/api_users/profile_show.rabl @@ -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