mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-29 04:19:28 -04:00
Merge branch 'develop' into application-services
This commit is contained in:
commit
9978c5c103
26 changed files with 240 additions and 115 deletions
|
@ -139,7 +139,7 @@ class SynapseHomeServer(HomeServer):
|
|||
logger.info("Attaching %s to path %s", resource, full_path)
|
||||
last_resource = self.root_resource
|
||||
for path_seg in full_path.split('/')[1:-1]:
|
||||
if not path_seg in last_resource.listNames():
|
||||
if path_seg not in last_resource.listNames():
|
||||
# resource doesn't exist, so make a "dummy resource"
|
||||
child_resource = Resource()
|
||||
last_resource.putChild(path_seg, child_resource)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue