diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index 26a2c3ab3409..d29662560f71 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -2534,6 +2534,12 @@ export function initialize({ type: 'POST', version, headers, + redactUrl: () => { + const tmp = new URL(signedUploadLocation); + tmp.search = ''; + tmp.pathname = ''; + return `${tmp}[REDACTED]`; + }, } );