From eeea6cf8b37506119f4525f290dc0cb978b4a7a5 Mon Sep 17 00:00:00 2001 From: Yulian Diaz <5605867+spatialy@users.noreply.github.com> Date: Thu, 19 Feb 2026 02:04:25 -0500 Subject: [PATCH] Fix: images not rendering on GitHub side of GitHub integration (#10520) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: GitHub integration images missing due to unauthenticated image URLs (#10516) Wire appendGuestLinkToImage as the default preprocessor in getMarkdown() so all Huly→GitHub sync paths stamp a guest JWT token onto image URLs, allowing GitHub's Camo proxy to fetch them without authentication. Fixes #10516 Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com> * Fix: expand inline arrow function to multi-line format per maintainer feedback Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com> --------- Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com> --- services/github/pod-github/src/worker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/github/pod-github/src/worker.ts b/services/github/pod-github/src/worker.ts index 7f6c7e82fb..f25aa21008 100644 --- a/services/github/pod-github/src/worker.ts +++ b/services/github/pod-github/src/worker.ts @@ -85,6 +85,7 @@ import { RepositorySyncMapper } from './sync/repository' import { ReviewCommentSyncManager } from './sync/reviewComments' import { ReviewThreadSyncManager } from './sync/reviewThreads' import { ReviewSyncManager } from './sync/reviews' +import { appendGuestLinkToImage } from './sync/guest' import { UsersSyncManager, fetchViewerDetails } from './sync/users' import { errorToObj } from './sync/utils' import { @@ -243,7 +244,10 @@ export class GithubWorker implements IntegrationManager { concatLink(this.getBranding()?.front ?? config.FrontURL, `/browse/?workspace=${this.workspace.uuid}`), // TODO storage URL concatLink(this.getBranding()?.front ?? config.FrontURL, `/files/${this.workspace.uuid}/`), - preprocessor + preprocessor ?? + (async (nodes) => { + appendGuestLinkToImage(nodes, this.workspace.uuid) + }) ) }