1
0
Fork 0

Use local key instead of openlibrary key in urls

but uh maybe the local key shouldn't look so gnarly?
This commit is contained in:
Mouse Reeve 2020-03-27 15:42:44 -07:00
parent 5d2fbb8500
commit 0f98610629
13 changed files with 24 additions and 22 deletions

View file

@ -232,7 +232,7 @@ def handle_tag(user, book, name):
def handle_untag(user, book, name):
''' tag a book '''
book = models.Book.objects.get(openlibrary_key=book)
book = models.Book.objects.get(local_key=book)
tag = models.Tag.objects.get(name=name, book=book, user=user)
tag_activity = activitypub.get_remove_tag(tag)
tag.delete()