mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Limit backup duration of RichText editor for 2 hours (#5569)
This commit is contained in:
parent
a282c78b56
commit
b1d90a99ad
@ -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)
|
||||
|
@ -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});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user