Fixes untag

This commit is contained in:
Mouse Reeve
2020-12-31 08:42:09 -08:00
parent a7a586ea90
commit 69af2f4cd3
4 changed files with 29 additions and 12 deletions

View File

@ -283,16 +283,6 @@ def to_markdown(content):
return sanitizer.get_output()
def handle_untag(user, book, name):
''' tag a book '''
book = models.Book.objects.get(id=book)
tag = models.Tag.objects.get(name=name, book=book, user=user)
tag_activity = tag.to_remove_activity(user)
tag.delete()
broadcast(user, tag_activity)
def handle_favorite(user, status):
''' a user likes a status '''
try: