Merge branch 'master' into develop

This commit is contained in:
Eliot Berriot 2019-03-07 13:44:33 +01:00
commit 491c79efa0
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
10 changed files with 73 additions and 17 deletions

View file

@ -25,7 +25,8 @@ from . import utils
def update_follow(follow, approved):
follow.approved = approved
follow.save(update_fields=["approved"])
routes.outbox.dispatch({"type": "Accept"}, context={"follow": follow})
if approved:
routes.outbox.dispatch({"type": "Accept"}, context={"follow": follow})
class LibraryFollowViewSet(