Commit Graph

6 Commits

Author SHA1 Message Date
orangix
02be603dcc refactor api package comments
* use encoding/json for comment parsing

* refactor by moving loop code to an UnmarshalJSON

* use a preallocated array and indices to maintain order while using
  goroutines again, this was removed a while ago

* use new struct in comment.hbs and contextComment.hbs

* rewriteUrl partial to reduce rimgo-specific code in api

* move RenderError into pages package to avoid import cycle between render and utils
2026-01-25 06:08:28 +01:00
orangix
e5b87dc924 gofmt 2026-01-19 02:36:52 +01:00
video-prize-ranch
9525106ccc Use browser headers for image requests 2023-05-26 15:45:59 -04:00
video-prize-ranch
740ae0d925 Use 429 error page for 429 errors from Imgur API 2022-10-05 22:16:57 -04:00
video-prize-ranch
1263e66f45 Add error page for ratelimit 2022-09-10 10:11:17 -04:00
video-prize-ranch
6eee86d682 Improve code reuse 2022-05-23 11:10:50 -04:00