Merge pull request #44490 from nextcloud/backport/44291/stable28

[stable28] enh: Send empty expireDate when not expireDate set
pull/44844/head
F. E Noel Nfebe 2 months ago committed by GitHub
commit cab9fc22ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -822,9 +822,7 @@ export default {
fileInfo: this.fileInfo,
}
if (this.hasExpirationDate) {
incomingShare.expireDate = this.share.expireDate
}
incomingShare.expireDate = this.hasExpirationDate ? this.share.expireDate : ''
if (this.isPasswordProtected) {
incomingShare.password = this.share.password
@ -857,9 +855,9 @@ export default {
shareWith: share.shareWith,
permissions: share.permissions,
attributes: JSON.stringify(fileInfo.shareAttributes),
expireDate: share.expireDate,
...(share.note ? { note: share.note } : {}),
...(share.password ? { password: share.password } : {}),
...(share.expireDate ? { expireDate: share.expireDate } : {}),
})
return resultingShare
} catch (error) {

3
dist/2674-2674.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
dist/8718-8718.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save