فهرست منبع

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)
Inverle 2 هفته پیش
والد
کامیت
5ef8756e49

+ 1 - 0
lib/core-extensions/UserCSS/extension.php

@@ -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 = '';

+ 1 - 1
lib/core-extensions/UserCSS/metadata.json

@@ -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"
 }

+ 1 - 0
lib/core-extensions/UserJS/extension.php

@@ -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 = '';

+ 1 - 1
lib/core-extensions/UserJS/metadata.json

@@ -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"
 }