aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/subscriptionController.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2021-02-16 12:00:49 -0500
committerGravatar GitHub <noreply@github.com> 2021-02-16 18:00:49 +0100
commitfe1fba9828ad4d68a3cc93ed5f8e361f34e5a873 (patch)
treeca9168f79844b0320f7731a1f2969d3d112c4eac /app/Controllers/subscriptionController.php
parent5daee165dc73fcf74673f2ede1891dbd5821c9f4 (diff)
Add a content action parameter to work with CSS selector (#3453)
Before, when retrieving article contents with CSS selector, the content of the RSS feed was replaced by the content of the CSS selector. It works well in most of the cases but if there is a different content in the feed and in the selector, the former is lost. Now, there is a parameter to decide which action is performed after retrieving the content. By default, the previous behavior is kept. But now, it is possible to append or prepend the CSS selector content to the feed content. See #3451
Diffstat (limited to 'app/Controllers/subscriptionController.php')
-rw-r--r--app/Controllers/subscriptionController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php
index 7435f70b2..1cff6ff56 100644
--- a/app/Controllers/subscriptionController.php
+++ b/app/Controllers/subscriptionController.php
@@ -125,6 +125,8 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
}
$feed->_attributes('curl_params', empty($opts) ? null : $opts);
+ $feed->_attributes('content_action', Minz_Request::param('content_action', 'replace'));
+
if (FreshRSS_Auth::hasAccess('admin')) {
$feed->_attributes('ssl_verify', Minz_Request::paramTernary('ssl_verify'));
$timeout = intval(Minz_Request::param('timeout', 0));