summaryrefslogtreecommitdiffstats
path: root/server/src/apub/private_message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/apub/private_message.rs')
-rw-r--r--server/src/apub/private_message.rs15
1 files changed, 4 insertions, 11 deletions
diff --git a/server/src/apub/private_message.rs b/server/src/apub/private_message.rs
index 567a6178..228cc684 100644
--- a/server/src/apub/private_message.rs
+++ b/server/src/apub/private_message.rs
@@ -1,16 +1,9 @@
use crate::{
apub::{
- activities::send_activity,
- create_tombstone,
- fetcher::get_or_fetch_and_upsert_remote_user,
- insert_activity,
- ApubObjectType,
- FromApub,
- ToApub,
+ activities::send_activity, create_tombstone, fetcher::get_or_fetch_and_upsert_remote_user,
+ insert_activity, ApubObjectType, FromApub, ToApub,
},
- blocking,
- DbPool,
- LemmyError,
+ blocking, DbPool, LemmyError,
};
use activitystreams::{
activity::{Create, Delete, Undo, Update},
@@ -71,7 +64,7 @@ impl FromApub for PrivateMessageForm {
/// Parse an ActivityPub note received from another instance into a Lemmy Private message
async fn from_apub(
- note: &mut Note,
+ note: &Note,
client: &Client,
pool: &DbPool,
) -> Result<PrivateMessageForm, LemmyError> {