forked-synapse/synapse/rest/client
Sean Quah e46d5f3586
Factor out an is_mine_server_name method (#15542)
Add an `is_mine_server_name` method, similar to `is_mine_id`.

Ideally we would use this consistently, instead of sometimes comparing
against `hs.hostname` and other times reaching into
`hs.config.server.server_name`.

Also fix a bug in the tests where `hs.hostname` would sometimes differ
from `hs.config.server.server_name`.

Signed-off-by: Sean Quah <seanq@matrix.org>
2023-05-05 15:06:22 +01:00
..
__init__.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
_base.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
account_data.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
account_validity.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
account.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
appservice_ping.py Implement MSC2659: application service ping endpoint (#15249) 2023-03-16 15:00:03 +01:00
auth.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
capabilities.py Load /capabilities endpoint on workers (#15436) 2023-04-14 12:26:07 -04:00
devices.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
directory.py Load /directory/room/{roomAlias} endpoint on workers (#15333) 2023-04-14 10:24:06 +01:00
events.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
filter.py Add column full_user_id to tables profiles and user_filters. (#15458) 2023-04-26 16:03:26 -07:00
initial_sync.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
keys.py Add support for claiming multiple OTKs at once. (#15468) 2023-04-27 12:57:46 -04:00
knock.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
login_token_request.py Save login tokens in database (#13844) 2022-10-26 11:45:41 +01:00
login.py Only load the SSO redirect servlet if SSO is enabled. (#15421) 2023-04-13 13:08:00 +00:00
logout.py Add a type hint for get_device_handler() and fix incorrect types. (#14055) 2022-11-22 14:08:04 -05:00
models.py A third batch of Pydantic validation for rest/client/account.py (#13736) 2022-09-15 18:36:02 +01:00
mutual_rooms.py Mutual rooms: Remove dependency on user directory (#12836) 2022-05-30 10:05:31 +01:00
notifications.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
openid.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
password_policy.py Load /password_policy endpoint on workers. (#15331) 2023-03-27 07:37:17 -04:00
presence.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
profile.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
push_rule.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
pusher.py Make cleaning up pushers depend on the device_id instead of the token_id (#15280) 2023-03-24 11:09:39 -04:00
read_marker.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
receipts.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
register.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
relations.py Initial implementation of MSC3981: recursive relations API (#15315) 2023-05-02 07:59:55 -04:00
rendezvous.py Implementation of HTTP 307 response for MSC3886 POST endpoint (#14018) 2022-10-18 15:52:25 +00:00
report_event.py Make POST /_matrix/client/v3/rooms/{roomId}/report/{eventId} endpoint return 404 if event exists, but the user lacks access (#15300) 2023-03-21 13:24:03 +00:00
room_batch.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
room_keys.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
room_upgrade_rest_servlet.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
room.py Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
sendtodevice.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
sync.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
tags.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
thirdparty.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
tokenrefresh.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
transactions.py Experimental support for MSC3970: per-device transaction IDs (#15318) 2023-04-25 09:37:09 +01:00
user_directory.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
versions.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00
voip.py Add a primitive helper script for listing worker endpoints. (#15243) 2023-03-23 12:11:14 +00:00