Skip to content

Commit

Permalink
disable thumbnail proxy for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Sep 13, 2024
1 parent fd86858 commit 45a84b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/api/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ export const scaledThumbnailUrlFor = (url, width, height) => {
if (configs.RETICULUM_SERVER.includes("hubs.local") && url.includes("hubs.local")) {
return url;
}

return `https://${configs.THUMBNAIL_SERVER}/thumbnail/${farsparkEncodeUrl(url)}?w=${width}&h=${height}`;
// Temporary workaround for lack of farspark thumbnail server
const disableThumbs = true;
if (disableThumbs) {
return url;
} else {
return `https://${configs.THUMBNAIL_SERVER}/thumbnail/${farsparkEncodeUrl(url)}?w=${width}&h=${height}`;
}
};

const CommonKnownContentTypes = {
Expand Down

0 comments on commit 45a84b5

Please sign in to comment.