1
0
Fork 0

Fixes accept follow request

Fixes #3
This commit is contained in:
Mouse Reeve 2020-02-14 22:44:07 -08:00
parent c4549e9b17
commit e0e419a757
3 changed files with 25 additions and 17 deletions

View file

@ -16,7 +16,7 @@ def get_recipients(user, post_privacy, direct_recipients=None):
recipients = direct_recipients or []
if post_privacy == 'direct':
# all we care about is direct_recipients, not followers
return recipients
return [u.inbox for u in recipients]
# load all the followers of the user who is sending the message
followers = user.followers.all()