aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 784576455..13c32b7a6 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -446,8 +446,20 @@ class FreshRSS_Entry extends Minz_Model {
$feed->pathEntries(),
$feed->attributes()
);
- if ($fullContent != '') {
- $this->content = $fullContent;
+ if ('' !== $fullContent) {
+ switch ($feed->attributes('content_action')) {
+ case 'prepend':
+ $this->content = $fullContent . $this->content();
+ break;
+ case 'append':
+ $this->content = $this->content() . $fullContent;
+ break;
+ case 'replace':
+ default:
+ $this->content = $fullContent;
+ break;
+ }
+
return true;
}
} catch (Exception $e) {