Stream 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stream/fires.rb +5 -1
- data/stream.gemspec +1 -1
- metadata +1 -1
data/lib/stream/fires.rb
CHANGED
@@ -35,7 +35,11 @@ module Stream
|
|
35
35
|
|
36
36
|
transaction do
|
37
37
|
activity = ActivityItem.create!(create_options)
|
38
|
-
|
38
|
+
if activity_type.to_s.eql?'new_message'
|
39
|
+
activity.subject.recipient.activity_items << activity
|
40
|
+
else
|
41
|
+
([activity.actor] + activity.actor.contacts).each{ |p| p.activity_items << activity }
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
41
45
|
|
data/stream.gemspec
CHANGED