mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-11-02 16:37:19 -04:00
Add an endpoint for /accounts
It still needs a template.
This commit is contained in:
parent
90ff4927ef
commit
c1b5eb6359
@ -66,5 +66,6 @@ urlpatterns = [
|
|||||||
path('filters/edit/<id>', views.edit_filter, name='edit_filter'),
|
path('filters/edit/<id>', views.edit_filter, name='edit_filter'),
|
||||||
path('requests/', views.follow_requests, name='follow_requests'),
|
path('requests/', views.follow_requests, name='follow_requests'),
|
||||||
path('requests/<id>', views.follow_requests, name='follow_requests'),
|
path('requests/<id>', views.follow_requests, name='follow_requests'),
|
||||||
|
path('accounts/', views.accounts, name='accounts'),
|
||||||
path('', views.home, name=''),
|
path('', views.home, name=''),
|
||||||
]
|
]
|
||||||
|
@ -1132,3 +1132,12 @@ def follow_requests(request, id=None):
|
|||||||
mastodon.follow_request_reject(id)
|
mastodon.follow_request_reject(id)
|
||||||
return redirect(follow_requests)
|
return redirect(follow_requests)
|
||||||
|
|
||||||
|
@br_login_required
|
||||||
|
def accounts(request):
|
||||||
|
active_account, mastodon = get_usercontext(request)
|
||||||
|
if request.method == 'GET':
|
||||||
|
accounts = [x['user'] for x in request.session.get('accounts_dict').values()]
|
||||||
|
return render(request, 'accounts/list.html',
|
||||||
|
{'active_account': active_account,
|
||||||
|
'accounts': accounts,
|
||||||
|
'preferences': active_account.preferences})
|
||||||
|
Loading…
Reference in New Issue
Block a user