mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-21 12:44:02 +01: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