.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&creator, &conn, &community, create)?;
+ Comment::send_comment_activity(&creator, &conn, &community, maa.inboxes,create)?;
Ok(())
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&creator, &conn, &community, update)?;
+ Comment::send_comment_activity(&creator, &conn, &community, maa.inboxes, update)?;
Ok(())
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&creator, &conn, &community, delete)?;
+ Comment::send_comment_activity(&creator, &conn, &community,vec!(community.get_shared_inbox_url()), delete)?;
Ok(())
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(delete)?;
- Comment::send_comment_activity(&creator, &conn, &community, undo)?;
+ Comment::send_comment_activity(&creator, &conn, &community, vec!(community.get_shared_inbox_url()),undo)?;
Ok(())
}
.set_actor_xsd_any_uri(mod_.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&mod_, &conn, &community, remove)?;
+ Comment::send_comment_activity(&mod_, &conn, &community, vec!(community.get_shared_inbox_url()),remove)?;
Ok(())
}
.set_actor_xsd_any_uri(mod_.actor_id.to_owned())?
.set_object_base_box(remove)?;
- Comment::send_comment_activity(&mod_, &conn, &community, undo)?;
+ Comment::send_comment_activity(&mod_, &conn, &community, vec!(community.get_shared_inbox_url()),undo)?;
Ok(())
}
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&creator, &conn, &community, like)?;
+ Comment::send_comment_activity(&creator, &conn, &community, vec!(community.get_shared_inbox_url()),like)?;
Ok(())
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(note)?;
- Comment::send_comment_activity(&creator, &conn, &community, dislike)?;
+ Comment::send_comment_activity(&creator, &conn, &community, vec!(community.get_shared_inbox_url()),dislike)?;
Ok(())
}
.set_actor_xsd_any_uri(creator.actor_id.to_owned())?
.set_object_base_box(like)?;
- Comment::send_comment_activity(&creator, &conn, &community, undo)?;
+ Comment::send_comment_activity(&creator, &conn, &community, vec!(community.get_shared_inbox_url()), undo)?;
Ok(())
}
}
}
}
- let mut inboxes = community.get_follower_inboxes(&conn)?;
+ let mut inboxes = vec!(community.get_shared_inbox_url());
inboxes.extend(mention_inboxes);
inboxes = inboxes.into_iter().unique().collect();
creator: &User_,
conn: &PgConnection,
community: &Community,
+ to: Vec<String>,
activity: A,
) -> Result<(), Error>
where
// if this is a local community, we need to do an announce from the community instead
if community.local {
- Community::do_announce(activity, &community.actor_id, &creator.actor_id, conn, true)?;
+ Community::do_announce(activity, &community, &creator.actor_id, conn, true)?;
} else {
- send_activity(&activity, creator, vec![community.get_shared_inbox_url()])?;
+ send_activity(&activity, creator, to)?;
}
Ok(())
}