1
0
mirror of https://gitlab.com/brutaldon/brutaldon synced 2025-01-31 00:24:49 +01:00

Unbreak that last fix for Mastodon while keeping it fixed for Pleroma

This commit is contained in:
Jason McBrayer 2019-01-24 08:47:16 -05:00
parent 0bca674f88
commit dd20a1de36

View File

@ -63,8 +63,7 @@ def localuser(value):
try: try:
parsed = parse.urlparse(value) parsed = parse.urlparse(value)
instance = parsed[1] instance = parsed[1]
set_trace() if parsed[2].startswith('/@'):
if parsed[2].startswith('@'):
user = parsed[2][2:] user = parsed[2][2:]
else: else:
user = parsed[2].split('/')[-1] user = parsed[2].split('/')[-1]