parent
c4549e9b17
commit
e0e419a757
3 changed files with 25 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue