mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 19:19:31 +02:00
Fix #743: Do not send notification when rejecting a follow on a local library
This commit is contained in:
parent
9dcfc20571
commit
3d94eddcfc
3 changed files with 9 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue