parent
90ff4927ef
commit
c1b5eb6359
|
@ -66,5 +66,6 @@ urlpatterns = [
|
|||
path('filters/edit/<id>', views.edit_filter, name='edit_filter'),
|
||||
path('requests/', 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=''),
|
||||
]
|
||||
|
|
|
@ -1132,3 +1132,12 @@ def follow_requests(request, id=None):
|
|||
mastodon.follow_request_reject(id)
|
||||
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