mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 09:00:44 -05:00
Fix more AS sender ID thinkos.
Specifically, the ASes own user ID wasn't being treated as 'exclusive' so a human could nab it. Also, the HS would needlessly send user queries to the AS for its own user ID.
This commit is contained in:
parent
80a620a83a
commit
813e54bd5b
2 changed files with 12 additions and 2 deletions
|
|
@ -211,7 +211,10 @@ class ApplicationService(object):
|
|||
return self._matches_regex(room_id, ApplicationService.NS_ROOMS)
|
||||
|
||||
def is_exclusive_user(self, user_id):
|
||||
return self._is_exclusive(ApplicationService.NS_USERS, user_id)
|
||||
return (
|
||||
self._is_exclusive(ApplicationService.NS_USERS, user_id)
|
||||
or user_id == self.sender
|
||||
)
|
||||
|
||||
def is_exclusive_alias(self, alias):
|
||||
return self._is_exclusive(ApplicationService.NS_ALIASES, alias)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue