Commit graph

22 commits

Author SHA1 Message Date
Andros Fenollosa
c34a90c9e2 Fixed reaction 2025-11-01 14:42:43 +01:00
Andros Fenollosa
fd571fc856 Add automatic cleanup of stale feeds
This commit implements automatic cleanup of feeds that haven't been successfully fetched in 3 days.

Changes:
- Add last_successful_fetch field to Feed model to track when feeds are successfully fetched (HTTP 200)
- Update parse_org_social() and validate_org_social_feed() to record successful fetches
- Add new periodic task cleanup_stale_feeds() that runs every 3 days and deletes inactive feeds
- Add comprehensive test suite (9 tests, all passing)
- Migration safely handles existing feeds by setting initial last_successful_fetch to protect them

Safety features:
- Feeds with last_successful_fetch = NULL are never deleted (protects legacy feeds)
- Only feeds older than 3 days are deleted
- Extensive logging of cleanup operations
- Initial migration sets timestamp for all existing feeds to prevent accidental deletion

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-11 10:53:29 +02:00
Andros Fenollosa
c861964225 Updated name groups with spaces 2025-10-10 07:54:55 +02:00
Andros Fenollosa
e7975920fb Format code with ruff 2025-10-09 19:21:33 +02:00
Andros Fenollosa
453d770e7e Implement group filtering by post field instead of membership
- Add group field to Post model
- Store group name directly in posts during feed scanning
- Filter group messages by post.group field
- Remove GroupMember dependency from views
- Update tests to use direct group field
- Simpler and more efficient approach

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-09 19:13:22 +02:00
Andros Fenollosa
c16c09ea4e Fixed headers 2025-10-02 10:25:47 +02:00
Andros Fenollosa
f41b6157df Updated crons 2025-09-30 12:13:02 +02:00
Andros Fenollosa
0ebae9e8b2 Updated HATEOUS 2025-09-23 18:37:55 +02:00
Andros Fenollosa
38efcd8339 Added groups 2025-09-22 16:51:18 +02:00
Andros Fenollosa
aad211c9d2 Fixed format 2025-09-22 14:52:46 +02:00
Andros Fenollosa
e1b4a0d12f Make Org Social feed parsing case-insensitive
- Updated parser to accept #+title:, #+nick:, #+description: (lowercase)
- Added re.IGNORECASE flag to all metadata parsing regex patterns
- Fixes validation issues with feeds using lowercase keywords
- Enables registration of feeds like codeberg.org that use lowercase format
2025-09-21 12:26:52 +02:00
Andros Fenollosa
9ffacbb7d1 Fixed cache 2025-09-20 19:16:04 +02:00
Andros Fenollosa
b27bcbe9e1 Updated mentions 2025-09-20 10:18:17 +02:00
Andros Fenollosa
109ff29854 Added mentions and tasks 2025-09-19 16:09:27 +02:00
Andros Fenollosa
db6243c785 Fixed crontab 2025-09-17 08:56:10 +02:00
Andros Fenollosa
f740b08671 Minor fix 2025-09-17 08:50:54 +02:00
Andros Fenollosa
7da5d50ab1 Added cache 2025-09-16 16:12:03 +02:00
Andros Fenollosa
91957efb59 Fix minor bug 2025-09-16 15:41:57 +02:00
Andros Fenollosa
4d274ba834 Added envExample 2025-09-16 15:39:12 +02:00
Andros Fenollosa
b9c84a25ae Feeds endpoints 2025-09-16 15:28:21 +02:00
Andros Fenollosa
8eda72f24c Added first test 2025-09-12 15:53:32 +02:00
Andros Fenollosa
e7b9a1347f First commit 2025-09-12 11:29:00 +02:00