mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 07:36:01 +00:00
parent
870abf8442
commit
c89006c94a
|
@ -14,7 +14,7 @@ use activitypub_federation::{
|
|||
utils::verify_domains_match,
|
||||
};
|
||||
use chrono::NaiveDateTime;
|
||||
use lemmy_api_common::utils::blocking;
|
||||
use lemmy_api_common::utils::{blocking, check_person_block};
|
||||
use lemmy_db_schema::{
|
||||
source::{
|
||||
person::Person,
|
||||
|
@ -132,6 +132,7 @@ impl ApubObject for ApubPrivateMessage {
|
|||
let recipient = note.to[0]
|
||||
.dereference(context, local_instance(context), request_counter)
|
||||
.await?;
|
||||
check_person_block(creator.id, recipient.id, context.pool()).await?;
|
||||
|
||||
let form = PrivateMessageForm {
|
||||
creator_id: creator.id,
|
||||
|
|
Loading…
Reference in a new issue