Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InstagramBridge] Fix broken compatibility for media_type parameter
The media_type parameter was recently replaced by media_type_u (for user mode) and media_type_h (for hashtag mode). This was necessary in order to add the media type 'story' only for the user mode. "The reason for that is that RSS-Bridge supports multiple parameters with the same name if and only if they contain the exact same value. Here, hashtags don't have stories, so it would not be possible to pass "story" as a parameter. This is a design mistake that I made when I added support for hashtags." -- 8770c87?diff=split#r28871502 However as pointed out this change breaks existing feeds as the parameter name is no longer compatible to previous implementations. This commit changes the implementation to provide the old media_type parameter globally and check for invalid options on each request. If a user uses the 'story' option in history mode the bridge returns a client error. references 8770c87 references #694 fixes #696 fixes #699 fixes #701
- Loading branch information