added test for facebook posting

This commit is contained in:
maxwell 2010-10-15 16:03:02 -07:00
parent 3af3e86911
commit a0ce9630b1
2 changed files with 6 additions and 1 deletions

View file

@ -51,4 +51,8 @@ class ApplicationController < ActionController::Base
end
end
def logged_into_fb?
@logged_in
end
end

View file

@ -12,8 +12,9 @@ class StatusMessagesController < ApplicationController
params[:status_message][:to] = params[:aspect_ids]
data = clean_hash params[:status_message]
if @logged_in && params[:status_message][:public] == '1'
if logged_into_fb? && params[:status_message][:public] == '1'
id = 'me'
type = 'feed'