MS pretty sure we dont need to get the oauth path every time we load the public aspect...

This commit is contained in:
maxwell 2010-10-06 18:38:37 -07:00
parent c68a026658
commit 0fb091ebbc

View file

@ -49,8 +49,8 @@ class AspectsController < ApplicationController
end end
def public def public
@fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create", # @fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create",
:scope=>MiniFB.scopes.join(",")) # :scope=>MiniFB.scopes.join(","))
@posts = current_user.visible_posts(:person_id => current_user.person.id, :public => true).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC' @posts = current_user.visible_posts(:person_id => current_user.person.id, :public => true).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'