Skip to content

Commit

Permalink
Bugfix tncid recommendations (#109)
Browse files Browse the repository at this point in the history
* Fix tncid on wrong recommendation requests
  • Loading branch information
ah-net committed Oct 12, 2023
1 parent fb73f95 commit 2feb9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function createHttpRequest(Request $tweakwiseRequest): HttpRequest
$path = $tweakwiseRequest->getPath();
$pathSuffix = $tweakwiseRequest->getPathSuffix();

if ($tweakwiseRequest instanceof Request\Recommendations\FeaturedRequest) {
if ($path === "recommendations/featured") {
if ($this->config->getRecommendationsFeaturedCategory()) {
$tweakwiseRequest->setCategory();
}
Expand Down

0 comments on commit 2feb9b3

Please sign in to comment.