First time here? Check out the FAQ!

Revision history  [back]

I found what was wrong : In models/posts.py, in get_global_instant_notification_subscribers, you used the q_all feed type with i frequency filter only for exclude ignored tags and for only interesting tags, but NOT for show all tags tag filter.

Just have to change the part :

    #segment of users who have tag filter turned off
    global_subscribers = User.objects.filter(
        email_tag_filter_strategy = const.INCLUDE_ALL
    )
    subscriber_set.update(global_subscribers)

to :

    #segment of users who have tag filter turned off
    global_subscribers = User.objects.filter(
        email_tag_filter_strategy = const.INCLUDE_ALL
    )
    if global_subscribers:
        instant_subscribers = EmailFeedSetting.objects.filter_subscribers(
            potential_subscribers = global_subscribers,
            feed_type = 'q_all',
            frequency = 'i'
        )
        subscriber_set.update(instant_subscribers)

and it works well.