mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 07:36:01 +00:00
Fix user following (#2623)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
c3fbb7702f
commit
9f52d4ae53
|
@ -52,6 +52,7 @@ pub enum GroupInboxActivities {
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
#[enum_delegate::implement(ActivityHandler)]
|
#[enum_delegate::implement(ActivityHandler)]
|
||||||
pub enum PersonInboxActivities {
|
pub enum PersonInboxActivities {
|
||||||
|
Follow(Follow),
|
||||||
AcceptFollow(AcceptFollow),
|
AcceptFollow(AcceptFollow),
|
||||||
UndoFollow(UndoFollow),
|
UndoFollow(UndoFollow),
|
||||||
CreateOrUpdatePrivateMessage(CreateOrUpdateChatMessage),
|
CreateOrUpdatePrivateMessage(CreateOrUpdateChatMessage),
|
||||||
|
@ -135,7 +136,7 @@ mod tests {
|
||||||
PersonInboxActivitiesWithAnnouncable,
|
PersonInboxActivitiesWithAnnouncable,
|
||||||
SiteInboxActivities,
|
SiteInboxActivities,
|
||||||
},
|
},
|
||||||
protocol::tests::test_parse_lemmy_item,
|
protocol::tests::{test_json, test_parse_lemmy_item},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -160,6 +161,8 @@ mod tests {
|
||||||
"assets/lemmy/activities/create_or_update/create_private_message.json",
|
"assets/lemmy/activities/create_or_update/create_private_message.json",
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
test_json::<PersonInboxActivitiesWithAnnouncable>("assets/mastodon/activities/follow.json")
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -9,5 +9,5 @@ export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||||
# so to load the config we need to traverse to the repo root
|
# so to load the config we need to traverse to the repo root
|
||||||
export LEMMY_CONFIG_LOCATION=../../config/config.hjson
|
export LEMMY_CONFIG_LOCATION=../../config/config.hjson
|
||||||
RUST_BACKTRACE=1 \
|
RUST_BACKTRACE=1 \
|
||||||
cargo test --workspace --all-features --no-fail-fast
|
cargo test -p lemmy_apub --all-features --no-fail-fast
|
||||||
# Add this to do printlns: -- --nocapture
|
# Add this to do printlns: -- --nocapture
|
||||||
|
|
Loading…
Reference in a new issue