-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for ".nomedia" paths and deletes in Viewer #1417
Conversation
Signed-off-by: Juergen Kellerer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, the Fix 'source' URL in viewer
part seems far too complicated.
I have plans to fix this for 26. Until then, I would like to keep the code simple.
Please strip this out from this PR and open a dedicated one for it so we can discuss this separately :)
0294851
to
96bae5a
Compare
Signed-off-by: Juergen Kellerer <[email protected]>
96bae5a
to
da7e5eb
Compare
Signed-off-by: Juergen Kellerer <[email protected]>
e8b70af
to
8b4cab1
Compare
@artonge anything missing for this pr? Looks complete and has an approval. If Cypress fail is related is unclear since the logs expired |
This PR is a collection of
32 fixes in 2 commits:Source URL could be invalid and this broke sidebar, download and file-editing in the Viewer. The URL derives from- moved to Fix 'source' URL in viewer #1419.filename
but this was not consistently built (sometimes with, sometimes without prefix). This change ensuresfilename
is consistent and a valid URL can always be built$store.appendFiles
may filter files in.nomedia
paths but the callers ofappendFiles
didn't evaluate whether the method really appended all files, leading to broken references. This change ensures that only files that were really appended will be considered.Delete File
action inside theViewer
was not propagated to thePhotos
app (the view still contained deleted files and caused failures when trying to get the file from the server).Hope this found useful. Had only fixed the most serious problems I found when trying the app.
Feel free to reject or accept the PR or individual commits of it.