Skip to content

Commit

Permalink
Revert "adds a very basic quality filter to the townsquare connect view"
Browse files Browse the repository at this point in the history
This reverts commit 378e7a8.
  • Loading branch information
owocki committed Aug 13, 2020
1 parent 7e4dcec commit 9af61c6
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 @@ -996,10 +996,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 9af61c6

Please sign in to comment.