Update user modify date when changing UserJS/UserCSS (#8607)

UserCSS textarea wasn't being updated after changing the CSS until clearing cache
(while using Chromium with a normal browser window)
This commit is contained in:
Inverle
2026-03-15 13:52:57 +01:00
committed by GitHub
parent a05546526d
commit 5ef8756e49
4 changed files with 4 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ final class UserCSSExtension extends Minz_Extension {
if (Minz_Request::isPost()) {
$css_rules = Minz_Request::paramString('css-rules', plaintext: true);
$this->saveFile(self::FILENAME, $css_rules);
FreshRSS_UserDAO::touch();
}
$this->css_rules = '';

View File

@@ -2,7 +2,7 @@
"name": "User CSS",
"author": "hkcomori, Marien Fressinaud",
"description": "Give possibility to overwrite the CSS with a user-specific rules.",
"version": "1.1.0",
"version": "1.1.1",
"entrypoint": "UserCSS",
"type": "user"
}

View File

@@ -28,6 +28,7 @@ final class UserJSExtension extends Minz_Extension {
if (Minz_Request::isPost()) {
$js_rules = Minz_Request::paramString('js-rules', plaintext: true);
$this->saveFile(self::FILENAME, $js_rules);
FreshRSS_UserDAO::touch();
}
$this->js_rules = '';

View File

@@ -2,7 +2,7 @@
"name": "User JS",
"author": "hkcomori, Frans de Jonge",
"description": "Apply user JS.",
"version": "1.1.1",
"version": "1.1.2",
"entrypoint": "UserJS",
"type": "user"
}