Merge branch 'main' into shelve-buttons
This commit is contained in:
commit
485de039cf
84 changed files with 1873 additions and 326 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue