forked from jmug/stoatchat
Messaging: Upsert mentions into unreads.
Messaging: Allow multiple attachment upload.
This commit is contained in:
@@ -31,11 +31,11 @@ pub async fn req(user: User, server: Ref, target: Ref, data: Json<Data>) -> Resu
|
||||
|
||||
let target = target.fetch_user().await?;
|
||||
if target.id == user.id {
|
||||
return Err(Error::InvalidOperation)
|
||||
return Err(Error::InvalidOperation);
|
||||
}
|
||||
|
||||
if target.id == server.owner {
|
||||
return Err(Error::MissingPermission)
|
||||
return Err(Error::MissingPermission);
|
||||
}
|
||||
|
||||
let mut document = doc! {
|
||||
|
||||
Reference in New Issue
Block a user