lib/tekeya/entity.rb in tekeya-0.0.2 vs lib/tekeya/entity.rb in tekeya-0.0.3
- old
+ new
@@ -341,10 +341,10 @@
acts_keys.each do |act_key|
acts << ::Tekeya::Feed::Activity::FeedItem.from_redis(act_key, self)
end
else
# Retrieve the activities from the DB
- self.tracking.each do |tracker|
+ (self.tracking + [self]).each do |tracker|
db_recent_activities = tracker.activities.recent
db_recent_activities.each do |activity|
acts << ::Tekeya::Feed::Activity::FeedItem.from_db(activity, tracker)
end
end