Limit backup duration of RichText editor for 2 hours (#5569)

This commit is contained in:
Yuriy Bakhtin 2022-02-19 00:53:46 +03:00 committed by GitHub
parent a282c78b56
commit b1d90a99ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ HumHub Changelog
- Fix #5479: Fix ContentContainerPermissionAccess without provided container
- Fix #5513: Fix PermaLink controller error for content without container
- Fix #5517: Don't send "Follows" notification on request friendship
- Fix #5563: Limit backup duration of RichText editor for 2 hours
1.10.3 (December 20, 2021)

View File

@ -125,7 +125,7 @@ humhub.module('ui.richtext.prosemirror', function(module, require, $) {
}
if (Object.keys(backup).length) {
$.cookie(this.options.backupCookieKey, JSON.stringify(backup));
$.cookie(this.options.backupCookieKey, JSON.stringify(backup), {expires: 120 / 1440/*2 hours*/});
} else {
$.cookie(this.options.backupCookieKey, null, {expires: -1});
}