feat: allow shared albums to sync
The Immich API only returns the albums that you own, not those that have been shared with you.
This change appends albums that have been shared with you to the list of albums you own.
I don't use the shared album feature. How to test it?
What we need:
- An Immich instance as the source
- An Immich instance as the destination
- On the source instance, we have an account where other accounts share their albums.
- On the destination instance, there is an account where we want to upload the shared albums
Steps:
- Try uploading the shared album from the source instance to the destination instance using Immich Go.
- As the Immich API is not returning the shared album, it is not possible to obtain the data or perform a sync of the shared albums.
Solution: Obtain the albums that you own and the shared ones from the source instance. This will enable us to perform the sync.
The intent is to use upload from-immich to import in the destination server shared photos belonging to another account from the source server. Am I correct?
I think this feature should not been enabled by default. You may want to sync each account separately.
I propose to add the flag --include-shared to the command from-immich to enable the feature.