Clarify a comment about the implementation of blocking invitations.

This commit is contained in:
gnuxie committed 2025-05-23 18:08:47 +01:00
1 parent dd3a50125d
commit 2a731bf66b
1 file changed
+4 -2
@@ -36,8 +36,10 @@ export class SynapseHTTPUserMayInvite {
const serverHash = createHash("sha256")
.update(userServerName(sender), "utf8")
.digest("base64");
// We only want to block user invites that with recommendation Ban
// when they match the automaticRedactReasons.
// We only want to block the invitation with user policies with recommendation Ban
// when they match the automaticRedactReasons. This is so they can still appeal
// being banned in COC use cases.
// Server policies are fine to be used to derive the block.
const matchingUserPolicy = [
...this.watchedPolicyRooms.currentRevision.allRulesMatchingEntity(
sender,