Skip to content

Commit

Permalink
Fix cached circle returning bool before being parsed as JSON
Browse files Browse the repository at this point in the history
Closes #928

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
  • Loading branch information
tcitworld authored and backportbot[bot] committed Feb 23, 2022
1 parent b470785 commit f31a1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FederatedUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ private function getCachedSingleCircle(FederatedUser $federatedUser): Circle {
$key = $this->generateCacheKey($federatedUser);
$cachedData = $this->cache->get($key);

if ($cachedData === null) {
if (!is_string($cachedData)) {
throw new SingleCircleNotFoundException();
}

Expand Down

0 comments on commit f31a1eb

Please sign in to comment.