From 18b783502264f044851bdf35f3825b9a724f0732 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Sat, 4 Jul 2020 16:35:24 -0700 Subject: [PATCH] Look up book by remote_id when adding tag This is what downstream expects, I think this is the right level to convert --- fedireads/view_actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedireads/view_actions.py b/fedireads/view_actions.py index db35269c..289c24c8 100644 --- a/fedireads/view_actions.py +++ b/fedireads/view_actions.py @@ -283,8 +283,9 @@ def tag(request): # field which doesn't validate name = request.POST.get('name') 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)