mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
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:
|
||||
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]
|
||||
|
Loading…
Reference in New Issue
Block a user