lib/fetcher/microdata/article_small/facebook/coercer.rb in fetcher-microdata-facebook-0.0.2 vs lib/fetcher/microdata/article_small/facebook/coercer.rb in fetcher-microdata-facebook-0.0.3
- old
+ new
@@ -11,10 +11,10 @@
:articleBody => post["message"],
:dateCreated => "#{post["created_time"]}",
:author => PersonUser.new(:facebook, { "id" => "#{post["actor_id"]}" }),
:likes_count => post["likes"]["count"],
:comments_count => post["comments"]["count"],
- :viewer => PersonUser.new(:facebook, viewer),
+ :viewer => PersonUser.new(:facebook, { "id" => "#{post["viewer_id"]}" }),
:provider => ["facebook"]
}
i = 0
post["likes"]["sample"].each do |like|
#resp[:likes].push Like.new :facebook, like
\ No newline at end of file