1
0
Fork 0

Load author data with fedireads connector

This commit is contained in:
Mouse Reeve 2020-05-09 12:09:40 -07:00
parent bb01834a31
commit 093945e7fb
9 changed files with 73 additions and 25 deletions

View file

@ -507,6 +507,9 @@ def author_page(request, author_id):
except ValueError:
return HttpResponseNotFound()
if is_api_request(request):
return JsonResponse(activitypub.get_author(author))
books = models.Work.objects.filter(authors=author)
data = {
'author': author,