Skip to content

Commit

Permalink
update favorites API
Browse files Browse the repository at this point in the history
  • Loading branch information
elvis972602 committed Oct 19, 2023
1 parent 4d6beee commit ebf78da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ func fetchFavoriteCreators(s string, cookie []*http.Cookie) []kemono.FavoriteCre
downloader.AddProxy(proxy, client.Transport.(*http.Transport))
}

req, err := http.NewRequest("GET", fmt.Sprintf("https://%s.party/api/v1/favorites?type=user", s), nil)
req, err := http.NewRequest("GET", fmt.Sprintf("https://%s.party/api/v1/account/favorites?type=user", s), nil)
if err != nil {
log.Fatalf("Error creating request: %s", err)
}
Expand Down Expand Up @@ -720,7 +720,7 @@ func fetchFavoritePosts(s string, cookie []*http.Cookie) []kemono.PostRaw {
}
downloader.AddProxy(proxy, client.Transport.(*http.Transport))
}
req, err := http.NewRequest("GET", fmt.Sprintf("https://%s.party/api/v1/favorites?type=post", s), nil)
req, err := http.NewRequest("GET", fmt.Sprintf("https://%s.party/api/v1/account/favorites?type=post", s), nil)
if err != nil {
log.Fatalf("Error creating request: %s", err)
}
Expand Down

0 comments on commit ebf78da

Please sign in to comment.