Browse Source

fix upload link pointing to other app

Pi 8 tháng trước cách đây
mục cha
commit
e546b3b6a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rest/save.py

+ 1 - 1
rest/save.py

@@ -71,7 +71,7 @@ def save_upload(name: str, location: str, content: BufferedRandom, root='rest/st
 
     shutil.move(f'{tmpdir}/{unique.hex}', f'{directory}/{_b32}.file')
     save_filename(name, _b32, directory)
-    link = f'{location}/clip/{_b32}'
+    link = f'{location}/upload/{_b32}'
     svg = get_qr_code(link, fallback=link)
     save_qr(svg, _b32, directory)