Notifications for follow requests

This commit is contained in:
Mouse Reeve
2021-02-10 16:06:50 -08:00
parent ac57db5375
commit d9e65aa363
2 changed files with 13 additions and 8 deletions

View File

@ -136,14 +136,7 @@ def handle_follow(activity):
)
# send the accept normally for a duplicate request
manually_approves = relationship.user_object.manually_approves_followers
status_builder.create_notification(
relationship.user_object,
'FOLLOW_REQUEST' if manually_approves else 'FOLLOW',
related_user=relationship.user_subject
)
if not manually_approves:
if not relationship.user_object.manually_approves_followers:
relationship.accept()