Utensil's Zettelkasten-style forest of evergreen notes on math and tech. utensil.tngl.sh/forest/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: use discussions collection for HN/Lobsters/Reddit links [AGENT]

- Changed reference links from 'references' to 'discussions' collection
- Updated documentation to reflect discussions collection usage
- Discussion links now properly grouped separate from main content

Files modified:
- rss2linkwarden.py: folder 'references' → 'discussions'
- README_rss2linkwarden.md: Updated collection documentation

author
utensil
date (Aug 28, 2025, 12:45 PM +0800) commit 2ec3c90f parent 0bc413ef change-id olnkpxnx
+11 -4
+10 -3
README_rss2linkwarden.md
··· 42 42 - Preserves discussion context and metadata 43 43 44 44 ### Collection Management 45 - - Maps CSV `folder` to Linkwarden collections 46 - - Reference links go to "references" collection 47 - - Collections created automatically by linkwarden_import.py 45 + - Maps CSV `folder` to Linkwarden collections dynamically 46 + - Creates collections automatically if they don't exist (e.g., "hunt" → hunt collection) 47 + - Discussion links (HN/Lobsters/Reddit) go to "discussions" collection 48 + - Collections cached to avoid repeated API calls 49 + - Default fallback to "rss" collection if folder is empty 48 50 49 51 ## Example 50 52 ··· 59 61 {"title": "Example", "url": "https://example.com", "content": "https://news.ycombinator.com/item?id=123", "textContent": "Great article", "tags": "programming", "folder": "tech", ...} 60 62 {"title": "https://news.ycombinator.com/item?id=123", "url": "https://news.ycombinator.com/item?id=123", "content": "from https://example.com", "tags": "re/hn", "folder": "references", ...} 61 63 ``` 64 + 65 + **Linkwarden Result:** 66 + - Main link goes to "tech" collection 67 + - Discussion link goes to "discussions" collection 68 + - Collections created automatically if they don't exist 62 69 63 70 ## Integration 64 71
+1 -1
rss2linkwarden.py
··· 227 227 'content': description, 228 228 'textContent': '', 229 229 'tags': platform_tag, 230 - 'folder': 'references', 230 + 'folder': 'discussions', # Discussion links go to discussions collection 231 231 'datePublished': source_timestamp, # Use source timestamp 232 232 'dateArrived': source_timestamp, # Use source timestamp 233 233 'uniqueID': f"ref_{hash(ref_url) % 1000000}",