don't show social channels in API requests
This commit is contained in:
@ -141,8 +141,8 @@ class ChannelsController < ApplicationController
|
||||
@channels = current_user.channels
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { render :json => @channels.to_json(Channel.private_options) }
|
||||
format.xml { render :xml => @channels.to_xml(Channel.private_options) }
|
||||
format.json { render :json => @channels.not_social.to_json(Channel.private_options) }
|
||||
format.xml { render :xml => @channel.not_socials.to_xml(Channel.private_options) }
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user