added test for facebook posting
This commit is contained in:
parent
3af3e86911
commit
a0ce9630b1
2 changed files with 6 additions and 1 deletions
|
|
@ -51,4 +51,8 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def logged_into_fb?
|
||||||
|
@logged_in
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,8 @@ class StatusMessagesController < ApplicationController
|
||||||
|
|
||||||
data = clean_hash params[:status_message]
|
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'
|
id = 'me'
|
||||||
type = 'feed'
|
type = 'feed'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue