diff options
| author | 2021-03-09 08:41:01 +0100 | |
|---|---|---|
| committer | 2021-03-09 08:41:01 +0100 | |
| commit | ef4a826e345e2eb7c0013617b3f07cc53ef22ed8 (patch) | |
| tree | 9347f2e14c857626376b224fe40572ae0d695be2 /app/Models/Feed.php | |
| parent | 385e7f883a3ea39fba4e5dad4a64f1ffe352165d (diff) | |
Reload full content when changed (#3506)
* Reload full content when changed
If an article is changed, reload also its full content when applicable.
* Compute hash before getting full content
* Revert mix two PRs
* Update app/Controllers/feedController.php
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 795337b01..7f52ba52f 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -467,10 +467,8 @@ class FreshRSS_Feed extends Minz_Model { ); $entry->_tags($tags); $entry->_feed($this); - if ($this->pathEntries != '') { - // Optionally load full content for truncated feeds - $entry->loadCompleteContent(); - } + $entry->hash(); //Must be computed before loading full content + $entry->loadCompleteContent(); // Optionally load full content for truncated feeds yield $entry; } |
