Commit 8a7c214
fix: use objStore.raw_url for current audio in share links (#363)
Problem:
Audio files couldn't play from share links (/@s/share_id) returning HTTP 500 errors.
Root Cause:
The audio preview component used rawLink(obj, true) to construct the audio URL.
However, rawLink() generates URLs by concatenating paths on the frontend,
which may lack proper authentication tokens or have incorrect path structure
for share links.
Other preview components (video, image, doc, etc.) correctly use objStore.raw_url,
which is the complete download URL returned by the backend API with proper
authentication already applied.
Solution:
For the currently selected audio file, use objStore.raw_url (backend-provided URL).
For other files in the playlist, continue using rawLink() as before.
This aligns the audio preview behavior with other preview components.
Co-authored-by: Auto-fix <[email protected]>1 parent f29f9ff commit 8a7c214
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments