Stream 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stream/fires.rb +2 -1
- data/stream.gemspec +1 -1
- metadata +1 -1
data/lib/stream/fires.rb
CHANGED
@@ -45,9 +45,10 @@ module Stream
|
|
45
45
|
last_activity = ActivityItem.find(:first, :conditions => ["subject_type = ? AND subject_id = ? AND DATE(updated_at) = current_date",
|
46
46
|
photo.class,photo.id])
|
47
47
|
|
48
|
-
unless last_activity && (
|
48
|
+
unless last_activity && (gallery.eql?(last_activity.subject.gallery))
|
49
49
|
([activity.actor] + gallery.allowed_contacts).each do |p|
|
50
50
|
activity.is_hidden = !p.subject.approval_status
|
51
|
+
activity.photos << activity.subject
|
51
52
|
activity.save
|
52
53
|
p.activity_items << activity
|
53
54
|
end
|
data/stream.gemspec
CHANGED