mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-05-07 04:28:43 +00:00
d20d2b9218
* Implement federated user following (fixes #752) * rewrite send_activity_in_community and add docs, remove default for column pending * improve migration * replace null values in db migration
20 lines
606 B
Rust
20 lines
606 B
Rust
pub(crate) mod accept;
|
|
pub mod follow;
|
|
pub mod undo_follow;
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use crate::protocol::{
|
|
activities::following::{accept::AcceptFollow, follow::Follow, undo_follow::UndoFollow},
|
|
tests::test_parse_lemmy_item,
|
|
};
|
|
|
|
#[test]
|
|
fn test_parse_lemmy_accept_follow() {
|
|
test_parse_lemmy_item::<Follow>("assets/lemmy/activities/following/follow.json").unwrap();
|
|
test_parse_lemmy_item::<AcceptFollow>("assets/lemmy/activities/following/accept.json").unwrap();
|
|
test_parse_lemmy_item::<UndoFollow>("assets/lemmy/activities/following/undo_follow.json")
|
|
.unwrap();
|
|
}
|
|
}
|