base/app/models/actor.rb in social_stream-0.26.0 vs base/app/models/actor.rb in social_stream-0.26.1

- old
+ new

@@ -315,9 +315,15 @@ includes(:actor). map(&:actor). map(&:id) end + # An array with the ids of {Actor Actors} followed by this {Actor} + # plus the id from this {Actor} + def following_actor_and_self_ids + following_actor_ids + [ id ] + end + # Does this {Actor} allow subject to perform action on object? def allow?(subject, action, object) ties_to(subject).with_permissions(action, object).any? end