fix: file sharing path, Tor status consistency, Archipelago channel fixes

- ShareModal: strip leading / from filepath (was causing "absolute paths not allowed")
- Server.vue: Tor status in Local Network section now uses same source as header
- Both fixes needed for file sharing and Tor to work consistently

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-19 22:56:37 +00:00
parent 0de8b4f698
commit eb00d8f064
2 changed files with 2 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ async function save() {
const addRes = await rpcClient.call<{ item: { id: string } }>({
method: 'content.add',
params: {
filename: props.filepath || props.filename,
filename: (props.filepath || props.filename).replace(/^\/+/, ''),
mime_type: mimeMap[ext] || 'application/octet-stream',
description: '',
},