Skip to content

Commit

Permalink
Avoid breaking changes by defaulting feed_filter to 'all' (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
hareeshnagaraj authored Oct 23, 2019
1 parent 0155073 commit b034653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discovery-provider/src/queries/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b034653

Please sign in to comment.