mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
Fix user following (#2623)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
c3fbb7702f
commit
9f52d4ae53
2 changed files with 5 additions and 2 deletions
|
@ -52,6 +52,7 @@ pub enum GroupInboxActivities {
|
|||
#[serde(untagged)]
|
||||
#[enum_delegate::implement(ActivityHandler)]
|
||||
pub enum PersonInboxActivities {
|
||||
Follow(Follow),
|
||||
AcceptFollow(AcceptFollow),
|
||||
UndoFollow(UndoFollow),
|
||||
CreateOrUpdatePrivateMessage(CreateOrUpdateChatMessage),
|
||||
|
@ -135,7 +136,7 @@ mod tests {
|
|||
PersonInboxActivitiesWithAnnouncable,
|
||||
SiteInboxActivities,
|
||||
},
|
||||
protocol::tests::test_parse_lemmy_item,
|
||||
protocol::tests::{test_json, test_parse_lemmy_item},
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
@ -160,6 +161,8 @@ mod tests {
|
|||
"assets/lemmy/activities/create_or_update/create_private_message.json",
|
||||
)
|
||||
.unwrap();
|
||||
test_json::<PersonInboxActivitiesWithAnnouncable>("assets/mastodon/activities/follow.json")
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
#[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
|
||||
export LEMMY_CONFIG_LOCATION=../../config/config.hjson
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue