Merge branch 'develop' of github.com:martini/zammad into develop

This commit is contained in:
Martin Edenhofer 2015-12-18 11:49:35 +01:00
commit 7a1bbfa4a0

View file

@ -24,10 +24,10 @@ class Channel::Driver::Facebook
@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
@ -42,11 +42,11 @@ class Channel::Driver::Facebook
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] )