lib/pupil/stream/base.rb in pupil-0.3.1 vs lib/pupil/stream/base.rb in pupil-0.3.2
- old
+ new
@@ -65,10 +65,10 @@
end
end
def guess_event status
if status["event"] && status["event"]["follow"]
- return Pupil::Stream::User.new(status["target"], @access_token, :follow)
+ return Pupil::Stream::User.new(status["source"], @access_token, :follow)
elsif status["event"]
return Pupil::Stream::Hash.new(status, status["event"].to_sym)
elsif status["friends"]
return Pupil::Stream::Array.new(status["friends"], :friends)
elsif status["delete"]