mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-13 18:59:00 -05:00
rename misleading sender_servername to origin
this is the X-Matrix origin/server, NOT the `"sender"`` user's server name. Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
6ccf578437
commit
7328ed7509
3 changed files with 74 additions and 121 deletions
|
|
@ -119,7 +119,7 @@ where
|
|||
|
||||
let mut json_body = serde_json::from_slice::<CanonicalJsonValue>(&body).ok();
|
||||
|
||||
let (sender_user, sender_device, sender_servername, appservice_info) = match (metadata.authentication, token) {
|
||||
let (sender_user, sender_device, origin, appservice_info) = match (metadata.authentication, token) {
|
||||
(_, Token::Invalid) => {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::UnknownToken {
|
||||
|
|
@ -322,7 +322,7 @@ where
|
|||
body,
|
||||
sender_user,
|
||||
sender_device,
|
||||
sender_servername,
|
||||
origin,
|
||||
json_body,
|
||||
appservice_info,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue