Commit Graph

134 Commits

Author SHA1 Message Date
Tanner 1ed94b529d refactor: Adapt Meilisearch integration to v1.29.0 API
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-06-13 11:58:08 -06:00
Tanner 0636b586ef feat: Add MeiliSearch API key authentication 2026-06-13 11:58:08 -06:00
Tanner 1960a0b567 feat: Add feed source filtering to settings and API
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2026-01-03 00:01:46 +00:00
Tanner 32355ff408 feat: Fetch smallweb stories iteratively until limit met
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 22:18:22 +00:00
Tanner d2aab946dc feat: Add domain exclusion to smallweb list loading 2025-12-04 22:18:19 +00:00
Tanner cf092908eb feat: Add smallweb filter checkbox and server-side filtering
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 22:09:11 +00:00
Tanner dc5aca5999 Downgrade humanize 2025-12-04 19:53:13 +00:00
Tanner b58610cf19 Freeze requirements 2025-12-04 19:51:42 +00:00
Tanner b476741b96 Don't locate css file on server 2025-12-04 19:49:19 +00:00
Tanner 30fde32b28 feat: Render homepage feed server-side
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 18:42:14 +00:00
Tanner 099d777faa feat: Add relative timestamps and permalinks to comments
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 18:35:43 +00:00
Tanner e463a6da53 feat: Link compiled CSS bundle for non-JS client
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 18:16:50 +00:00
Tanner fe0a4dedb4 feat: Add static rendering for article pages
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-12-04 18:01:00 +00:00
Tanner 00f4ee5565 Move static build directory to apiserver/ 2025-12-02 22:38:49 +00:00
Tanner d499cdedb0 Misc fixes 2025-12-01 21:07:01 +00:00
Tanner 9fa2699e26 fix: Improve submit error handling on API and refactor client with async/await
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-11-21 23:02:29 +00:00
Tanner ca6b5ce677 feat: Display detailed submission errors to user
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
2025-11-21 22:56:48 +00:00
Tanner 2c5147a64d Begin stats API route 2025-11-20 22:25:26 +00:00
Tanner c724838523 Add debug logging, debug add manual submissions to feed 2025-11-20 21:55:45 +00:00
Tanner 6fa02367dd Ignore blank hackernews titles 2025-11-19 19:17:38 +00:00
Tanner 10629200b0 Skip "Removed by moderator" stories 2025-09-27 17:38:50 +00:00
Tanner b09d432c10 Ignore dead and political stories 2025-05-27 18:47:17 +00:00
Tanner 1569c16e70 Fix Better HN api content extraction 2025-02-01 22:39:13 +00:00
Tanner 9f52226d47 Add Better HN as an API backup 2025-02-01 21:42:06 +00:00
Tanner b3eb55e2d1 Bug fixes 2025-02-01 20:31:35 +00:00
Tanner fafed2cf3d Alert on story update error 2024-03-16 20:41:24 +00:00
Tanner 7dc9e3ad16 Adjust score and comment thresholds 2024-03-08 03:08:18 +00:00
Tanner 6c1aced06c Fix deletion script 2024-03-08 03:08:03 +00:00
Tanner 005004ad3d Increase database timeout 2024-02-27 18:48:56 +00:00
Tanner 12bb83ade8 Fix lobsters comment parsing 2024-02-27 18:47:00 +00:00
Tanner 8f70f7a6c2 Move scripts into own folder 2024-02-27 18:32:29 +00:00
Tanner e85f0d8e19 Disable lobsters 2023-09-13 01:02:15 +00:00
Tanner c228ab0635 Replace "indent_level" with "depth" in lobsters API
See:
https://github.com/lobsters/lobsters/commit/fe09e5aa31993e09ed4ad255bb4a359f1e8a2d62
2023-08-31 07:35:44 +00:00
Tanner f11123b441 Handle Lobsters comment parsing TypeErrors
Too lazy to debug this:

2023-08-29 12:56:35,111 - root - INFO - Updating lobsters story: yktkwr, index: 55
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/tanner/qotnews/apiserver/server.py", line 194, in feed_thread
    valid = feed.update_story(story)
  File "/home/tanner/qotnews/apiserver/feed.py", line 74, in update_story
    res = lobsters.story(story['ref'])
  File "/home/tanner/qotnews/apiserver/feeds/lobsters.py", line 103, in story
    s['comments'] = iter_comments(r['comments'])
  File "/home/tanner/qotnews/apiserver/feeds/lobsters.py", line 76, in iter_comments
    parent_stack = parent_stack[:indent-1]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
2023-08-29T12:56:35Z <Greenlet at 0x7f92ad840ae0: feed_thread> failed with TypeError
2023-08-31 07:30:39 +00:00
Tanner 83fea72578 Add Tildes group whitelist 2023-07-13 22:54:36 +00:00
Tanner 3a0f7e79a2 Increase again 2023-06-13 17:11:50 +00:00
Tanner 0cfbf152eb Increase Tildes story score requirement 2023-06-11 01:01:31 +00:00
Tanner b051794a0c Catch all possible Reddit API exceptions 2023-03-15 21:16:37 +00:00
Tanner 8218c849b7 Fix fix-stories bug 2022-08-10 04:06:39 +00:00
Tanner 545f2f300e Write fixed stories to database 2022-07-05 00:57:56 +00:00
Tanner 32e1ed615e Begin script to fix bad gzip text 2022-07-04 20:32:01 +00:00
Tanner 3db01c01f0 Move FEED_LENGTH to settings.py, use for search results 2022-07-04 19:08:24 +00:00
Tanner 9fa9899965 Add test file 2022-07-04 05:56:06 +00:00
Tanner 4816e8a5ed Fix requests text encoding slowness 2022-07-04 05:55:52 +00:00
Tanner 26f03f883b Return search results directly from the server 2022-07-04 04:33:01 +00:00
Tanner c1aede8f1f Adjust title 2022-06-30 00:05:15 +00:00
Tanner d6cf56677b Add noindex meta tag to stories 2022-06-29 23:20:53 +00:00
Tanner dae40b27cb Increase database timeout 2022-06-24 20:50:27 +00:00
Tanner 3d8ed467c9 Update software 2022-05-31 04:24:12 +00:00
Tanner e93230d518 Improve logging, sends tweets to nitter.net 2022-03-05 23:48:46 +00:00