diff --git a/fedireads/outgoing.py b/fedireads/outgoing.py index 7253ea20..79b47e1a 100644 --- a/fedireads/outgoing.py +++ b/fedireads/outgoing.py @@ -106,7 +106,6 @@ def handle_outgoing_accept(user, to_follow, request_activity): def handle_shelve(user, book, shelf): ''' a local user is getting a book put on their shelf ''' # update the database - # TODO: this should probably happen in incoming instead models.ShelfBook(book=book, shelf=shelf, added_by=user).save() activity = activitypub.get_add(user, book, shelf) @@ -132,7 +131,6 @@ def handle_shelve(user, book, shelf): def handle_unshelve(user, book, shelf): ''' a local user is getting a book put on their shelf ''' # update the database - # TODO: this should probably happen in incoming instead row = models.ShelfBook.objects.get(book=book, shelf=shelf) row.delete() diff --git a/fedireads/sanitize_html.py b/fedireads/sanitize_html.py index e1dc01f3..020c0907 100644 --- a/fedireads/sanitize_html.py +++ b/fedireads/sanitize_html.py @@ -1,4 +1,4 @@ -''' we're solving fizzbuzz with a little help from the web ''' +''' html parser to clean up incoming text from unknown sources ''' from html.parser import HTMLParser class InputHtmlParser(HTMLParser):