diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e065f..1cfbd96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `UniqueContentRule` model, allows the user to determine how unique RSS items are defined +- `unique_content_rules` attribute to the `Subscription` model, many-to-many relationship with the related model +- Web interface method of setting a Subscription's unique content rules, through a multi-select field +- Migrations to allow older versions to seemlessly upgrade for this change, by creating the `UniqueContentRule` instances and setting default content rules on Subscriptions + ### Fixed - Footer links pointing to older domain @@ -15,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Web interface now uses the full device width, rather than a smaller maximum width -- Server sidebar use more width, also displays name and guild ID, becomes smaller on small devices. +- Server sidebar use more width, also displays name and guild ID, becomes smaller on small devices - Update changelog to follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) ## [0.3.4] - 2024-09-12 diff --git a/apps/static/js/home/subscriptions.js b/apps/static/js/home/subscriptions.js index 4403912..ac25076 100644 --- a/apps/static/js/home/subscriptions.js +++ b/apps/static/js/home/subscriptions.js @@ -65,6 +65,24 @@ async function initSubscriptionTable() { return `${channelsCount}`; } }, + { + title: "Content Rules", + data: "unique_content_rules", + className: "text-center text-nowrap", + render: function(data, type) { + console.log(JSON.stringify(data)) + + let badges = $("