Skip to content

fix: shared link add to album#27063

Merged
alextran1502 merged 1 commit intomainfrom
fix/shared-link-add-to-album
Mar 20, 2026
Merged

fix: shared link add to album#27063
alextran1502 merged 1 commit intomainfrom
fix/shared-link-add-to-album

Conversation

@jrasm91
Copy link
Member

@jrasm91 jrasm91 commented Mar 19, 2026

Follow up to #26886, which changed shared link uploads to auto-add assets to the shared link. However, this didn't handle shared link albums. Now, they're also added appropriately depending on the shared link type. There is a migration to remove shared_link_asset records for album shared links. Finally, this removes the necessity to use addAssetsToAlbums or addAssetsToAlbum with shared link auth, which will be updated in v3 to no longer accept shared link auth.


private async addToSharedLink(sharedLink: AuthSharedLink, assetId: string) {
await (sharedLink.albumId
? this.albumRepository.addAssetIds(sharedLink.albumId, [assetId])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Duplicate guest uploads to a shared album return an internal server error: PostgresError: duplicate key value violates unique constraint "album_asset_pkey"

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I'll update it to ignore conflicts.

@jrasm91 jrasm91 force-pushed the fix/shared-link-add-to-album branch from 9b25d08 to d1203f1 Compare March 20, 2026 17:34
@jrasm91 jrasm91 force-pushed the fix/shared-link-add-to-album branch from d1203f1 to 4e31557 Compare March 20, 2026 17:42
@alextran1502 alextran1502 merged commit 813d684 into main Mar 20, 2026
54 checks passed
@alextran1502 alextran1502 deleted the fix/shared-link-add-to-album branch March 20, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants