Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
34a43f00
Commit
34a43f00
authored
4 years ago
by
Andrew Morgan
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple of small typos
parent
a3cf36f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/appservice/__init__.py
+1
-1
1 addition, 1 deletion
synapse/appservice/__init__.py
synapse/storage/data_stores/main/appservice.py
+2
-2
2 additions, 2 deletions
synapse/storage/data_stores/main/appservice.py
with
3 additions
and
3 deletions
synapse/appservice/__init__.py
+
1
−
1
View file @
34a43f00
...
...
@@ -270,7 +270,7 @@ class ApplicationService(object):
def
is_exclusive_room
(
self
,
room_id
):
return
self
.
_is_exclusive
(
ApplicationService
.
NS_ROOMS
,
room_id
)
def
get_exlusive_user_regexes
(
self
):
def
get_ex
c
lusive_user_regexes
(
self
):
"""
Get the list of regexes used to determine if a user is exclusively
registered by the AS
"""
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/data_stores/main/appservice.py
+
2
−
2
View file @
34a43f00
...
...
@@ -30,12 +30,12 @@ logger = logging.getLogger(__name__)
def
_make_exclusive_regex
(
services_cache
):
# We precompie a regex constructed from all the regexes that the AS's
# We precompi
l
e a regex constructed from all the regexes that the AS's
# have registered for exclusive users.
exclusive_user_regexes
=
[
regex
.
pattern
for
service
in
services_cache
for
regex
in
service
.
get_exlusive_user_regexes
()
for
regex
in
service
.
get_ex
c
lusive_user_regexes
()
]
if
exclusive_user_regexes
:
exclusive_user_regex
=
"
|
"
.
join
(
"
(
"
+
r
+
"
)
"
for
r
in
exclusive_user_regexes
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment