diff --git a/app/views/users/show.js.erb b/app/views/users/show.js.erb index eb5de9c6a..33013c36d 100644 --- a/app/views/users/show.js.erb +++ b/app/views/users/show.js.erb @@ -1,2 +1,2 @@ -$("#show_more_activities").replaceWith("<%= escape_javascript( render :partial => 'users/user_activities',:locals => {:user_activities => @user_activities, :page => @page,:type => @type} )%>"); +$("#show_more_activities").replaceWith("<%= escape_javascript( render :partial => 'users/user_activities',:locals => {:user_activities => @user_activities, :page => @page,:type => @type, :user_id => (@user.type == "AnonymousUser" ? User.current.id : @user.id)} )%>");