docs(oo): comment where the new helpers are used

- link.go/links.go: third-party doc packs (fileid links), id-stability caveat
- auth.go AuthenticateAs / users check: email-vs-userName login finding
- projects files replace-in: version-history rationale
This commit is contained in:
2026-09-22 22:41:14 +01:00
parent df38b75011
commit 520d6d05c8
5 changed files with 33 additions and 5 deletions
+11
View File
@@ -1,6 +1,17 @@
package onlyoffice
// Deep links to OnlyOffice portal objects.
//
// Where this is used: third-party-facing document packs (e.g. the arc-1
// office.produktor.io "Lisbon apartment" project) embed per-file links of the
// form /Products/Files/DocEditor.aspx?fileid=<id> in a cover document and in
// chat messages. Those links must be generated consistently so they match the
// file ids returned by `oo projects files list` / `oo link`.
//
// Caveat proven on the arc-1 portal: file ids are server-assigned and a
// re-upload/delete yields a NEW id, so an already-shared link can go stale.
// Use `oo projects files replace-in` (keep the id clean) and, if a legacy link
// must keep working, an nginx alias can 302 the old fileid to the new one.
import (
"fmt"