mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
Fix links to user profiles from notifications page on Pleroma
Still fails for users on the same server -- needs to not include server part
This commit is contained in:
parent
9150ba7629
commit
0bca674f88
@ -63,7 +63,11 @@ def localuser(value):
|
||||
try:
|
||||
parsed = parse.urlparse(value)
|
||||
instance = parsed[1]
|
||||
set_trace()
|
||||
if parsed[2].startswith('@'):
|
||||
user = parsed[2][2:]
|
||||
else:
|
||||
user = parsed[2].split('/')[-1]
|
||||
local = reverse('user', args=[user+'@'+instance])
|
||||
except:
|
||||
local = value
|
||||
|
Loading…
Reference in New Issue
Block a user