mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 06:54:06 -04:00
Add and use get_domian_from_id
This commit is contained in:
parent
96d9d5d388
commit
08dfa8eee2
6 changed files with 23 additions and 28 deletions
|
@ -21,6 +21,10 @@ from collections import namedtuple
|
|||
Requester = namedtuple("Requester", ["user", "access_token_id", "is_guest"])
|
||||
|
||||
|
||||
def get_domian_from_id(string):
|
||||
return string.split(":", 1)[1]
|
||||
|
||||
|
||||
class DomainSpecificString(
|
||||
namedtuple("DomainSpecificString", ("localpart", "domain"))
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue