diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 13c32b7a6..b5b28c97a 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -447,12 +447,14 @@ class FreshRSS_Entry extends Minz_Model { $feed->attributes() ); if ('' !== $fullContent) { + $fullContent = "<!-- FULLCONTENT start //-->{$fullContent}<!-- FULLCONTENT end //-->"; + $originalContent = preg_replace('#<!-- FULLCONTENT start //-->.*<!-- FULLCONTENT end //-->#s', '', $this->content()); switch ($feed->attributes('content_action')) { case 'prepend': - $this->content = $fullContent . $this->content(); + $this->content = $fullContent . $originalContent; break; case 'append': - $this->content = $this->content() . $fullContent; + $this->content = $originalContent . $fullContent; break; case 'replace': default: |
