From b6ff992c5a0021c73d212e94614884091a626b2f Mon Sep 17 00:00:00 2001 From: Hareesh Nagaraj Date: Tue, 22 Oct 2019 17:44:02 -0700 Subject: [PATCH] Avoid breaking changes by defaulting feed_filter to 'all' --- discovery-provider/src/queries/queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery-provider/src/queries/queries.py b/discovery-provider/src/queries/queries.py index 3001122a463..39affcd938a 100644 --- a/discovery-provider/src/queries/queries.py +++ b/discovery-provider/src/queries/queries.py @@ -217,11 +217,11 @@ def get_feed(): db = get_db() # filter should be one of ["all", "reposts", "original"] + # empty filter value results in "all" if "filter" in request.args and request.args.get("filter") in ["all", "repost", "original"]: feed_filter = request.args.get("filter") else: - return api_helpers.error_response("Invalid filter provided") - + feed_filter = "all" # Current user - user for whom feed is being generated current_user_id = get_current_user_id()