-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/publicRooms should consider alt_aliases for returned aliases #7069
Comments
Related to #6898 . |
This seems sane to me, I don't believe the behaviour was deliberately changed. |
fwiw, we've mitigated this somewhat on riot-web by passing the server we've requested the public rooms for as the |
Would this need additional spec changes? Implementation wise, I think this would be pretty straightforward. |
the intention, as mentioned in https://docs.google.com/document/d/1NNDkobiFLeUkJtyj0H6qvKIedgvIkZnFKo78-03cGEk, and iirc discussed somewhere in the comments, is that This comes back to the fact that you can't rely on the aliases listed in a room event (be it
That is the correct way to do it, imho.
if the server is down, you wouldn't have been able to pull a room directory from it? |
I wasn't sure whether your local homeserver can cache the response from the other HS, but I guess that makes sense. Should the I'll close this one. |
well, it's currently optional in the spec... I guess if a server impl wanted to return it, we shouldn't stop them? |
Currently, Synapse only returns the canonical alias for returned rooms from the
/publicRooms
endpoint.alt_aliases
in the canonical alias event should also be considered to return in thealiases
field.Before the changes for MSC2432, Synapse would also return local aliases in the
aliases
field in the/publicRooms
response. This had the nice property of making rooms joinable over federation through the room directory without moderator intervention. Should we consider to return a (subset) of the local aliases if no canonical alias or alt_aliases have been set for a public room? Spam should be easily avoidable that way by just setting a canonical alias.The text was updated successfully, but these errors were encountered: