Delete statuses

This commit is contained in:
Mouse Reeve
2020-10-08 12:32:45 -07:00
parent 1705a550d4
commit 704e1092c4
8 changed files with 71 additions and 2 deletions

View File

@ -13,6 +13,7 @@ from bookwyrm.status import create_review, create_status
from bookwyrm.status import create_quotation, create_comment
from bookwyrm.status import create_tag, create_notification, create_rating
from bookwyrm.status import create_generated_note
from bookwyrm.status import delete_status
from bookwyrm.remote_user import get_or_create_remote_user
@ -197,6 +198,12 @@ def handle_import_books(user, items):
return None
def handle_delete_status(user, status):
''' delete a status and broadcast deletion to other servers '''
delete_status(status)
broadcast(user, status.to_activity())
def handle_rate(user, book, rating):
''' a review that's just a rating '''
builder = create_rating