use rpartition, not partition, to avoid splitting on leading @
This commit is contained in:
parent
6d176a6aa1
commit
a9d11fc7f8
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ ACTIVITY_HEADERS = {"Accept": ("application/ld+json; "
|
|||
'profile="https://www.w3.org/ns/activitystreams"')}
|
||||
|
||||
def _parse_username(s):
|
||||
username, _, instance = s.partition("@")
|
||||
username, _, instance = s.rpartition("@")
|
||||
if username.startswith("@"):
|
||||
username = username[1:]
|
||||
if username and instance:
|
||||
|
|
Loading…
Reference in a new issue