MatrixSynapse/synapse
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
..
_scripts Add an admin API endpoint to support per-user feature flags (#15344) 2023-04-28 11:33:45 -07:00
api Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
app Move ThirdPartyEventRules into module_api/callbacks (#15535) 2023-05-04 14:18:22 +00:00
appservice Add support for claiming multiple OTKs at once. (#15468) 2023-04-27 12:57:46 -04:00
config Add config option to forget rooms automatically when users leave them (#15224) 2023-05-03 12:27:33 +01:00
crypto Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
events Move ThirdPartyEventRules into module_api/callbacks (#15535) 2023-05-04 14:18:22 +00:00
federation Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
handlers Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
http Revert "Reduce the size of the HTTP connection pool for non-pushers" (#15530) 2023-05-03 13:09:20 +01:00
logging
media
metrics
module_api Move ThirdPartyEventRules into module_api/callbacks (#15535) 2023-05-04 14:18:22 +00:00
push Merge branch 'release-v1.83' into develop 2023-05-03 15:23:16 +01:00
replication Remove legacy code of single user device resync api (#15418) 2023-04-21 12:06:39 +01:00
res Use oEmbed for YouTube Shorts (#15025) 2023-05-03 12:54:42 -04:00
rest Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
server_notices
spam_checker_api
state Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
static
storage Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
streams
types
util Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
__init__.py
event_auth.py
notifier.py Move ThirdPartyEventRules into module_api/callbacks (#15535) 2023-05-04 14:18:22 +00:00
py.typed
server.py Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
visibility.py