mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-22 13:26:14 +01:00
Fix local user references with domain name on Pleroma
This commit is contained in:
parent
dd20a1de36
commit
2d3d88da72
@ -389,7 +389,8 @@ def user(request, username, prev=None, next=None):
|
||||
return redirect(about)
|
||||
try:
|
||||
user_dict = [dict for dict in mastodon.account_search(username)
|
||||
if dict.acct == username][0]
|
||||
if ((dict.acct == username) or
|
||||
(dict.acct == username.split('@')[0]))][0]
|
||||
except (IndexError, AttributeError):
|
||||
raise Http404(_("The user %s could not be found.") % username)
|
||||
data = mastodon.account_statuses(user_dict.id, max_id=next, since_id=prev)
|
||||
|
Loading…
Reference in New Issue
Block a user