/asset/random API-Endpoint does not return partner assets #2680

Closed
opened 2026-02-05 06:42:55 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @JW-CH on GitHub (Mar 26, 2024).

Originally assigned to: @JW-CH on GitHub.

The bug

When calling the /asset/random-API-Endpoint, my partner assets do not get returned. The endpoint will only return assets where the authenticated user is the owner of the asset. (see additional)

The settings look something like this:
image

The OS that Immich Server is running on

Unraid

Version of Immich Server

v1.99

Version of Immich Mobile App

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not required

Your .env content

not required

Reproduction steps

1. Call the `/assets/random`-Endpoint
2. Receive asset(s)

Additional information

6295edcdb7/server/src/repositories/asset.repository.ts (L546-L555)

Originally created by @JW-CH on GitHub (Mar 26, 2024). Originally assigned to: @JW-CH on GitHub. ### The bug When calling the `/asset/random`-API-Endpoint, my partner assets do not get returned. The endpoint will only return assets where the authenticated user is the owner of the asset. (see additional) The settings look something like this: ![image](https://github.com/immich-app/immich/assets/17313367/48487b60-0f15-48a2-b3ed-70a07f24c82c) ### The OS that Immich Server is running on Unraid ### Version of Immich Server v1.99 ### Version of Immich Mobile App - ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML not required ``` ### Your .env content ```Shell not required ``` ### Reproduction steps ```bash 1. Call the `/assets/random`-Endpoint 2. Receive asset(s) ``` ### Additional information https://github.com/immich-app/immich/blob/6295edcdb74fd2df8177729c96b8cc9430c868cb/server/src/repositories/asset.repository.ts#L546-L555
OVERLORD added the 🗄️server label 2026-02-05 06:42:55 +03:00
Author
Owner

@abe-101 commented on GitHub (Mar 26, 2024):

@JW-CH Thanks for opening the issue

Does it make sense that the getRandom endpoint should be dependent on the Partner timeline setting (shown in picture above)?

I think it should.

If that is the case then there should probably be small text elaborating how the setting also affects the endpoint...

@abe-101 commented on GitHub (Mar 26, 2024): @JW-CH Thanks for opening the issue Does it make sense that the getRandom endpoint should be dependent on the Partner timeline setting (shown in picture above)? I think it should. If that is the case then there should probably be small text elaborating how the setting also affects the endpoint...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2680