

def tweet(sender, instance, created, **kwargs):
    recipients = set()
    user = instance.sender
    user_content_type = ContentType.objects.get_for_model(user)
    followings = Following.objects.filter(followed_content_type=user_content_type, followed_object_id=user.id)
    for follower in (following.follower_content_object for following in followings):
        recipients.add(follower)
    recipients.add(user)
    match = reply_re.match(instance.text)
    if match:
        try:
            reply_recipient = User.objects.get(username=match.group(1))
            recipients.add(recipients)
        except User.DoesNotExist:
            pass
        else:
            if notification:
                notification.send([reply_recipient], 'tweet_reply_received', {
                    'tweet': instance,
                })
    for recipient in recipients:
        tweet_instance = TweetInstance.objects.create(text=instance.text, sender=user, recipient=recipient, sent=instance.sent)

dataset/ETHPy150Open amarandon/smeuhsocial/apps/microblogging/models.py tweet/VarMisuse@131/166 `reply_recipient`->`recipients`