Unbreak that last fix for Mastodon while keeping it fixed for Pleroma
This commit is contained in:
parent
0bca674f88
commit
dd20a1de36
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue