Runs black
This commit is contained in:
parent
a07f955781
commit
70296e760b
198 changed files with 10239 additions and 8572 deletions
|
@ -1,4 +1,4 @@
|
|||
''' the good stuff! the books! '''
|
||||
""" the good stuff! the books! """
|
||||
from django.http import JsonResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.views import View
|
||||
|
@ -9,11 +9,12 @@ from .helpers import is_bookwyrm_request
|
|||
|
||||
# pylint: disable= no-self-use
|
||||
class Outbox(View):
|
||||
''' outbox '''
|
||||
""" outbox """
|
||||
|
||||
def get(self, request, username):
|
||||
''' outbox for the requested user '''
|
||||
""" outbox for the requested user """
|
||||
user = get_object_or_404(models.User, localname=username)
|
||||
filter_type = request.GET.get('type')
|
||||
filter_type = request.GET.get("type")
|
||||
if filter_type not in models.status_models:
|
||||
filter_type = None
|
||||
|
||||
|
@ -23,5 +24,5 @@ class Outbox(View):
|
|||
filter_type=filter_type,
|
||||
pure=not is_bookwyrm_request(request)
|
||||
),
|
||||
encoder=activitypub.ActivityEncoder
|
||||
encoder=activitypub.ActivityEncoder,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue