glance
glance copied to clipboard
feat: new optional OAuth2 configuration for the Reddit widget
This PR brings the following:
- New
reddit-app-name,reddit-client-idandreddit-client-secretoptional configurations for the Reddit widget to authenticate requests sent to the Reddit API (avoiding being blocked when Glance is self-hosted) - Refactoring the of
fetchSubredditPostsfunction which is now a method ofredditWidgetsince it's unexported and only uses parameters which are fields of theredditWidgetstruct. - Updated documentation regarding the new Reddit widget parameters.
ref: #509
Eagerly waiting for this one to be merged! can't view my subreddit updates without it :(
@svilenmarkov please review this. Thanks
I wasn't able to make changes to the PR since you've disabled edit access for maintainers, so I used your changes, made some tweaks and committed them to the dev branch, adding you as the co-author. Thanks for contributing!
My bad, I didn't check that I disabled edit access. Thanks!