forked from mirrors/bookwyrm
Look up book by remote_id when adding tag
This is what downstream expects, I think this is the right level to convert
This commit is contained in:
parent
2840b9f22a
commit
18b7835022
1 changed files with 2 additions and 1 deletions
|
@ -283,8 +283,9 @@ def tag(request):
|
||||||
# field which doesn't validate
|
# field which doesn't validate
|
||||||
name = request.POST.get('name')
|
name = request.POST.get('name')
|
||||||
book_id = request.POST.get('book')
|
book_id = request.POST.get('book')
|
||||||
|
remote_id = 'https://%s/book/%s' % (DOMAIN, book_id)
|
||||||
|
|
||||||
outgoing.handle_tag(request.user, book_id, name)
|
outgoing.handle_tag(request.user, remote_id, name)
|
||||||
return redirect('/book/%s' % book_id)
|
return redirect('/book/%s' % book_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue