mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
fix: Ensure signed urls on shared documents are valid longer than 60s
This commit is contained in:
1 parent
1e5d281870
commit
77e8dbefd6
1 file changed
+2
-1
@@ -1,3 +1,4 @@
|
||||
import { Hour } from "@shared/utils/time";
|
||||
import { traceFunction } from "@server/logging/tracing";
|
||||
import { Document } from "@server/models";
|
||||
import { DocumentHelper } from "@server/models/helpers/DocumentHelper";
|
||||
@@ -31,7 +32,7 @@ async function presentDocument(
|
||||
document,
|
||||
options.isPublic
|
||||
? {
|
||||
signedUrls: 60,
|
||||
signedUrls: Hour.seconds,
|
||||
teamId: document.teamId,
|
||||
removeMarks: ["comment"],
|
||||
internalUrlBase: `/s/${options.shareId}`,
|
||||
|
||||
Reference in new issue
Block a user