user only pushes to non-pending contacts
This commit is contained in:
parent
f1ee32145d
commit
dea8d248e2
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ class User
|
||||||
#
|
#
|
||||||
target_aspect_ids = aspects.map {|a| a.id}
|
target_aspect_ids = aspects.map {|a| a.id}
|
||||||
|
|
||||||
target_contacts = Contact.all(:aspect_ids.in => target_aspect_ids)
|
target_contacts = Contact.all(:aspect_ids.in => target_aspect_ids, :pending => false)
|
||||||
|
|
||||||
post_to_hub(post) if post.respond_to?(:public) && post.public
|
post_to_hub(post) if post.respond_to?(:public) && post.public
|
||||||
push_to_people(post, self.person_objects(target_contacts))
|
push_to_people(post, self.person_objects(target_contacts))
|
||||||
|
|
@ -301,7 +301,7 @@ class User
|
||||||
params[:image_url_small] = params[:photo].url(:thumb_small)
|
params[:image_url_small] = params[:photo].url(:thumb_small)
|
||||||
end
|
end
|
||||||
if self.person.profile.update_attributes(params)
|
if self.person.profile.update_attributes(params)
|
||||||
push_to_people profile, self.person_objects(contacts)
|
push_to_people profile, self.person_objects(contacts(:pending => false))
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue