diff --git a/data/auth.sqlite b/data/auth.sqlite index c135a48..6c03a00 100644 Binary files a/data/auth.sqlite and b/data/auth.sqlite differ diff --git a/src/page.html b/src/page.html index 15bc3cb..c7db741 100644 --- a/src/page.html +++ b/src/page.html @@ -877,12 +877,13 @@ function updatePhotoPos(fuuid){ } function navigatePhoto(dir){ + var userId=localStorage.getItem("tree_user")||"demo"; var idx=_photoList.indexOf(_photoUuid); if(dir=="prev"&&idx>0)idx--;else if(dir=="next"&&idx<_photoList.length-1)idx++; if(idx>=0&&idx<_photoList.length){ _photoUuid=_photoList[idx]; var img=document.getElementById("mb-preview-img"); - if(img)img.src="/api/v2/files/"+_photoUuid+"/stream?_="+Date.now(); + if(img)img.src="/api/v2/files/"+userId+"/"+_photoUuid+"/stream?_="+Date.now(); updatePhotoPos(_photoUuid); } }