diff options
| author | 2025-08-07 22:20:08 +0200 | |
|---|---|---|
| committer | 2025-08-07 22:20:08 +0200 | |
| commit | 1f8273803f632b40c260721cb3257ae4e2251f5a (patch) | |
| tree | 4c60bfc77bb815600c4a8fbd505281b57834be4c /app/Models | |
| parent | 62f32ccadff77594f5b8e3ad24c4c2541ff35885 (diff) | |
Add more unicity criteria based on title and/or content (#7789)
* Add more unicity criteria based on title and/or content
https://github.com/FreshRSS/FreshRSS/discussions/7788
* More
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Feed.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 48a1d108f..26f85093e 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -661,6 +661,12 @@ class FreshRSS_Feed extends Minz_Model { 'sha1:link_published' => sha1($item->get_permalink() . $item->get_date('U')), 'sha1:link_published_title' => sha1($item->get_permalink() . $item->get_date('U') . $item->get_title()), 'sha1:link_published_title_content' => sha1($item->get_permalink() . $item->get_date('U') . $item->get_title() . $item->get_content()), + 'sha1:title' => sha1($item->get_title() ?? ''), + 'sha1:title_published' => sha1($item->get_title() . $item->get_date('U')), + 'sha1:title_published_content' => sha1($item->get_title() . $item->get_date('U') . $item->get_content()), + 'sha1:content' => sha1($item->get_content() ?? ''), + 'sha1:content_published' => sha1($item->get_content() . $item->get_date('U')), + 'sha1:published' => sha1((string)($item->get_date('U') ?? '')), default => $entryId, }; |
