Load author data with fedireads connector
This commit is contained in:
parent
bb01834a31
commit
093945e7fb
9 changed files with 73 additions and 25 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue