Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsteneckel committed Dec 18, 2015
1 parent 5d4876a commit ccb25b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/channel/driver/facebook.rb
Expand Up @@ -24,10 +24,10 @@ def send(article, _notification = false)
@channel = Channel.find_by( area: 'Facebook::Inbound', active: true )
@facebook = Facebook.new( @channel[:options] )

tweet = @facebook.from_article(article)
post = @facebook.from_article(article)
disconnect

tweet
post
end

def disconnect
Expand All @@ -42,11 +42,11 @@ def fetch_feed

counter = 0
feed = @facebook.client.get_connections('me', 'feed')
feed.each { |f|
feed.each { |feed_item|

break if @sync[:limit] && @sync[:limit] <= counter

post = @facebook.client.get_object( f['id'] )
post = @facebook.client.get_object( feed_item['id'] )

@facebook.to_group( post, @sync[:group_id] )

Expand Down

0 comments on commit ccb25b1

Please sign in to comment.