Delete statuses
This commit is contained in:
parent
1705a550d4
commit
704e1092c4
8 changed files with 71 additions and 2 deletions
|
@ -6,6 +6,11 @@ from bookwyrm.books_manager import get_or_create_book
|
|||
from bookwyrm.sanitize_html import InputHtmlParser
|
||||
|
||||
|
||||
def delete_status(status):
|
||||
''' replace the status with a tombstone '''
|
||||
status.deleted = True
|
||||
status.save()
|
||||
|
||||
def create_rating(user, book, rating):
|
||||
''' a review that's just a rating '''
|
||||
if not rating or rating < 1 or rating > 5:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue