if as_attachment is in the url, add it to the sign_url

pull/18930/head
sondin 1 year ago committed by GitHub
parent eb92dd59f9
commit fa258618e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1012,7 +1012,9 @@ class Message(db.Model): # type: ignore[name-defined]
sign_url = file_helpers.get_signed_file_url(upload_file_id)
else:
continue
#if as_attachment is in the url, add it to the sign_url
if "as_attachment" in url:
sign_url += "&as_attachment=true"
re_sign_file_url_answer = re_sign_file_url_answer.replace(url, sign_url)
return re_sign_file_url_answer

Loading…
Cancel
Save