Prevent join event spam with stable `reason`

Fix https://github.com/matrix-org/matrix-public-archive/issues/267
This commit is contained in:
Eric Eastwood 2023-06-22 01:46:27 -05:00
parent 3414fcf7b2
commit d9a6692759
1 changed files with 1 additions and 6 deletions

View File

@ -52,12 +52,7 @@ async function ensureRoomJoined(
reason: reason:
`Joining room to check history visibility. ` + `Joining room to check history visibility. ` +
`If your room is public with shared or world readable history visibility, ` + `If your room is public with shared or world readable history visibility, ` +
`it will be accessible at ${matrixPublicArchiveURLCreator.archiveUrlForRoom( `it will be accessible on ${matrixPublicArchiveURLCreator.roomDirectoryUrl()}. ` +
roomIdOrAlias
// We don't need to include the `viaServers` option here because the archive
// will already be joined to the room from this request itself and we don't
// need to make the URL any longer/noisier than it needs to be.
)}. ` +
`See the FAQ for more details: ` + `See the FAQ for more details: ` +
`https://github.com/matrix-org/matrix-public-archive/blob/main/docs/faq.md#why-did-the-archive-bot-join-my-room`, `https://github.com/matrix-org/matrix-public-archive/blob/main/docs/faq.md#why-did-the-archive-bot-join-my-room`,
}, },