Skip to content

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

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

Closed
wants to merge 1 commit into from

Conversation

s0ders
Copy link
Contributor

@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

@s0ders s0ders changed the title feat: new optional OAuth2 configuration for the Reddit widget. feat: new optional OAuth2 configuration for the Reddit widget Apr 11, 2025
@svilenmarkov svilenmarkov added this to the v0.8.0 milestone Apr 15, 2025
svilenmarkov added a commit that referenced this pull request Apr 28, 2025
Co-authored-by: s0ders <39492740+s0ders@users.noreply.github.com>
@svilenmarkov
Copy link
Member

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!

@s0ders
Copy link
Contributor Author

s0ders commented Apr 30, 2025

My bad, I didn't check that I disabled edit access. 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.

3 participants