1
0
Fork 0

Merge branch 'main' into shelve-buttons

This commit is contained in:
Mouse Reeve 2021-02-09 13:28:00 -08:00 committed by GitHub
commit 485de039cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
84 changed files with 1873 additions and 326 deletions

View file

@ -140,7 +140,12 @@ def shelve(request):
pass
shelfbook = models.ShelfBook.objects.create(
book=book, shelf=desired_shelf, added_by=request.user)
broadcast(request.user, shelfbook.to_add_activity(request.user))
broadcast(
request.user,
shelfbook.to_add_activity(request.user),
privacy=shelfbook.shelf.privacy,
software='bookwyrm'
)
# post about "want to read" shelves
if desired_shelf.identifier == 'to-read' and \
@ -173,4 +178,4 @@ def handle_unshelve(user, book, shelf):
activity = row.to_remove_activity(user)
row.delete()
broadcast(user, activity)
broadcast(user, activity, privacy=shelf.privacy, software='bookwyrm')