Stream 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stream/fires.rb +1 -4
- data/stream.gemspec +1 -1
- metadata +1 -1
data/lib/stream/fires.rb
CHANGED
@@ -44,7 +44,7 @@ module Stream
|
|
44
44
|
# Find recent photo activity
|
45
45
|
last_activity = ActivityItem.find(:first,
|
46
46
|
:conditions => ["subject_type = ? AND photos.gallery_id = ? AND DATE(activity_items.updated_at) = current_date",
|
47
|
-
|
47
|
+
activity.subject.class,gallery.id],:include=>[:photos])
|
48
48
|
|
49
49
|
unless last_activity && (gallery.eql?(last_activity.subject.gallery))
|
50
50
|
([activity.actor] + gallery.allowed_contacts).each do |p|
|
@@ -54,9 +54,6 @@ module Stream
|
|
54
54
|
p.activity_items << activity
|
55
55
|
send(:"after_#{opts[:on]}", method_name, :if => opts[:if])
|
56
56
|
end
|
57
|
-
else
|
58
|
-
last_activity.photos << self
|
59
|
-
last_activity.update_attribute(:updated_at,Time.now)
|
60
57
|
end
|
61
58
|
else
|
62
59
|
activity.save
|
data/stream.gemspec
CHANGED