Add reason why the archive bot is joining the room

Using the join `reason` added in MSC2367

Related to adding some better profile information, https://github.com/matrix-org/matrix-public-archive/issues/257#issuecomment-1570795922
This commit is contained in:
Eric Eastwood 2023-06-05 22:19:51 -05:00
parent 9d3b1766ad
commit f05ece64dc
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,8 @@ And with the introduction of the jump to date API via
[MSC3030](https://github.com/matrix-org/matrix-spec-proposals/pull/3030), we could show
messages from any given date and day-by-day navigation.
## Why did the archive bot join my room?
## How do I opt out and keep my room from being indexed by search engines?
All public Matrix rooms are accessible to view in the Matrix Public Archive. But only

View File

@ -43,6 +43,14 @@ async function ensureRoomJoined(
method: 'POST',
accessToken,
abortSignal,
body: {
reason:
`Joining room to check history visibility. ` +
`If your room is public with shared or world readable history visibility, ` +
`it will be accessible at archive.matrix.org. ` +
`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`,
},
});
assert(
joinData.room_id,