fix(mobile): replace 404 media library error with session-required state and device gallery fallback
Release APK / build (push) Has been cancelled

The Postiz public API v1 does not expose a media listing endpoint.
Switch URL to the correct internal path (/media?page=0&search=), handle
the resulting 401 with a dedicated lock-icon state, and wire the existing
device gallery picker as an onPickFromDevice fallback so the modal stays
usable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 19:08:15 +02:00
parent 0cf5800463
commit fb64b671d0
2 changed files with 32 additions and 5 deletions
@@ -767,6 +767,7 @@ export default function ComposeScreen() {
workspaces={workspaces}
maxSelect={MAX_IMAGES - mediaItems.length}
onClose={() => setShowMediaLibrary(false)}
onPickFromDevice={() => { setShowMediaLibrary(false); pickImage(); }}
onSelect={(items: LibraryMediaItem[]) => {
setMediaItems((prev) =>
[