8000 fix(storage): pass thumbnail path when duplicating covers by Beehtrix · Pull Request #769 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(storage): pass thumbnail path when duplicating covers - #769

Open
Beehtrix wants to merge 1 commit into
huddlz-hq:mainfrom
Beehtrix:cursor/thumbnail-path-765-1798
Open

Beehtrix wants to merge 1 commit into
huddlz-hq:mainfrom
Beehtrix:cursor/thumbnail-path-765-1798

Conversation

@Beehtrix
@Beehtrix Beehtrix commented Dec 2, 2026
Copy link
Copy Markdown

Fixes #765

HuddlCoverImages.duplicate/2 was passing the image record into duplicate_thumbnail_path/2, which expects a thumbnail path. Covers without a thumbnail then generated a destination path and called Storage.copy(nil, …).

Pass image.thumbnail_path so a missing thumbnail is skipped (or copied from the real path when present).

Added unit coverage for both cases.

Copilot AI lite review requested due to automatic review settings December 2, 2026 03:43
@chatgpt-codex-connector
Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T03:43:33.371617Z
We couldn’t complete this review. Comment @codex review to try again.
7a95bbb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

duplicate_thumbnail_path expected a path, but duplicate passed the
image record. Covers without a thumbnail then called Storage.copy(nil)
and failed. Pass image.thumbnail_path so missing thumbnails are skipped.

Related issue: huddlz-hq#765

Co-authored-by: Beehtrix <Beehtrix@users.noreply.github.com>
@Beehtrix
Beehtrix force-pushed the cursor/thumbnail-path-765-1798 branch from 7a95bbb to 831c073 Compare December 2, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copying a huddl cover passes the image record where its thumbnail path is expected

2 participants

0