mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Fix local user references with domain name on Pleroma
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user