Skip to content

Commit

Permalink
Fix Pocket integration redirect URL and Google Reader API HREF.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubbu0129 authored and fguillot committed Sep 1, 2023
1 parent bea9017 commit fa11489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/googlereader/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ func (h *handler) streamItemContents(w http.ResponseWriter, r *http.Request) {
Updated: time.Now().Unix(),
Self: []contentHREF{
{
HREF: config.Opts.BaseURL() + route.Path(h.router, "StreamItemsContents"),
HREF: config.Opts.RootURL() + route.Path(h.router, "StreamItemsContents"),
},
},
Author: user.Username,
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/integration_pocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *handler) pocketAuthorize(w http.ResponseWriter, r *http.Request) {

sess := session.New(h.store, request.SessionID(r))
connector := pocket.NewConnector(config.Opts.PocketConsumerKey(integration.PocketConsumerKey))
redirectURL := config.Opts.BaseURL() + route.Path(h.router, "pocketCallback")
redirectURL := config.Opts.RootURL() + route.Path(h.router, "pocketCallback")
requestToken, err := connector.RequestToken(redirectURL)
if err != nil {
logger.Error("[Pocket:Authorize] %v", err)
Expand Down

0 comments on commit fa11489

Please sign in to comment.