mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-01 21:07:34 +00:00
1 parent
347048c35f
commit
b375170fba
5 files changed
+107
-37
No files matched your search
@@ -109,17 +109,23 @@ impl super::Service {
|
||||
self.mark_as_joined(user_id, room_id);
|
||||
},
|
||||
| MembershipState::Invite => {
|
||||
let invite_state = if is_local {
|
||||
self.services
|
||||
.state
|
||||
.summary_stripped(pdu, room_id, user_id, false)
|
||||
.await
|
||||
} else {
|
||||
vec![]
|
||||
};
|
||||
// Remote invites for local users are not processed via the
|
||||
// /send endpoint or state
|
||||
// resolution, so they cannot bypass invite anti-spam or
|
||||
// signature checks.
|
||||
if !is_local || self.services.globals.user_is_local(pdu.sender()) {
|
||||
let invite_state = if is_local {
|
||||
self.services
|
||||
.state
|
||||
.summary_stripped(pdu, room_id, user_id, false)
|
||||
.await
|
||||
} else {
|
||||
vec![]
|
||||
};
|
||||
|
||||
self.mark_as_invited(user_id, room_id, pdu.sender(), invite_state, None)
|
||||
.await?;
|
||||
self.mark_as_invited(user_id, room_id, pdu.sender(), invite_state, None)
|
||||
.await?;
|
||||
}
|
||||
},
|
||||
| MembershipState::Knock => {
|
||||
let knocked_state = if is_local {
|
||||
|
||||
Reference in new issue
Block a user