Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new optional OAuth2 configuration for the Reddit widget. #529

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

s0ders
Copy link

@s0ders s0ders commented Mar 28, 2025

This PR brings the following:

  • New reddit-app-name, reddit-client-id and reddit-client-secret optional configurations for the Reddit widget to authenticate requests sent to the Reddit API (avoiding being blocked when Glance is self-hosted)
  • Refactoring the of fetchSubredditPosts function which is now a method of redditWidget since it's unexported and only uses parameters which are fields of the redditWidget struct.
  • Updated documentation regarding the new Reddit widget parameters.

ref: #509

@s0ders s0ders force-pushed the main branch 2 times, most recently from 8870b1f to dfc52a0 Compare March 28, 2025 14:43
@s0ders s0ders marked this pull request as draft March 30, 2025 10:31
@Nirzak
Copy link

Nirzak commented Mar 30, 2025

Eagerly waiting for this one to be merged! can't view my subreddit updates without it :(

This commit brings the following:
- New `reddit-app-name`, `reddit-client-id` and `reddit-client-secret`
  optional configurations for the Reddit widget to authenticate requests
  sent to the Reddit API (avoiding being blocked when Glance is
  self-hosted)
- Refactoring the of `fetchSubredditPosts` function which is now a
  method of `redditWidget` since it's unexported and only uses
  parameters which are fields of the `redditWidget` struct.

ref: glanceapp#509
@s0ders s0ders marked this pull request as ready for review March 31, 2025 09:13
@Nirzak
Copy link

Nirzak commented Apr 10, 2025

@svilenmarkov please review this. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants