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:
parsed = parse.urlparse(value)
instance = parsed[1]
set_trace()
if parsed[2].startswith('@'):
if parsed[2].startswith('/@'):
user = parsed[2][2:]
else:
user = parsed[2].split('/')[-1]