Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert committed Aug 13, 2020
2 parents e6a2222 + 9af61c6 commit ccab630
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,6 @@ def get_specific_activities(what, trending_only, user, after_pk, request=None):
activities = activities.filter(grant__in=relevant_grants)
if what == 'connect':
activities = activities.filter(activity_type__in=connect_types)
# adds a very basic quality filter to the townsquare connect view
then = timezone.now() - timezone.timedelta(hours=1)
activities = activities.filter(Q(likes__isnull=False) | Q(created_on__gt=then))

if what == 'kudos':
activities = activities.filter(activity_type__in=['new_kudos', 'receive_kudos'])

Expand Down

0 comments on commit ccab630

Please sign in to comment.