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
7b1314fae3
rss
2026-01-23 19:27:24 +01:00
orangix
cd4a36c9f7
port most routes
2026-01-19 19:11:01 +01:00
orangix
33fa04e98d
change pages/about.go to Config.ForceWebp
2026-01-19 03:04:06 +01:00
orangix
e5b87dc924
gofmt
2026-01-19 02:36:52 +01:00
video-prize-ranch
3b8ad3f360
Force WebP improvements ( #237 )
...
- Allow using `true` or `1` in configuration
- Set Content-Disposition header to use correct file extension when using "Save image as"
- Only rewrite requests from img elements using Sec-Fetch-Dest header
#200
#201
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/237
Reviewed-by: orangix <orangix@noreply.codeberg.org >
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
2026-01-12 01:46:53 +01:00
video-prize-ranch
4e3022ce1a
Add RSS feeds ( #194 )
...
Closes #179
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/194
Reviewed-by: orangix <orangix@noreply.codeberg.org >
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
2025-02-24 02:48:56 +00:00
video-prize-ranch
4afb7cefe7
Add support for new gallery link format ( #185 )
...
Fixes #183
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/185
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
2024-07-03 12:56:13 +00:00
orangix
09a76779c9
check page length before return in nextInTag ( #173 )
...
fixes #172
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/173
Co-authored-by: orangix <uleo8b8g@anonaddy.me >
Co-committed-by: orangix <uleo8b8g@anonaddy.me >
2024-02-07 01:13:29 +00:00
orangix
927ea20fad
next button for tagged posts ( #169 )
...
No previous button because that would be annoying to implement serverside with pagination etc.
Closes #115
Fixed conflict with #154 , #155 , #156
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/169
Reviewed-by: video-prize-ranch <video-prize-ranch@noreply.codeberg.org >
Co-authored-by: orangix <orangix@noreply.codeberg.org >
Co-committed-by: orangix <orangix@noreply.codeberg.org >
2024-02-05 22:47:04 +00:00
video-prize-ranch
1579e59dca
Errors in image format ( closes #165 )
2024-02-04 21:24:55 -05:00
video-prize-ranch
fc88bfbca5
Cleanup previous/next page buttons ( #134 )
...
Use noteq to simplify code, add current page to previous/next page bar
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/134
Reviewed-by: orangix <orangix@noreply.codeberg.org >
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
2023-08-30 17:24:54 +00:00
orangix
0fea1e46a3
Add user favorites ( #133 )
...
Closes #10
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/133
Reviewed-by: video-prize-ranch <video-prize-ranch@noreply.codeberg.org >
Co-authored-by: orangix <uleo8b8g@anonaddy.me >
Co-committed-by: orangix <uleo8b8g@anonaddy.me >
2023-08-29 22:59:59 +00:00
orangix
34ecc2a32b
User comments support ( #131 )
...
#10
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/131
Co-authored-by: orangix <uleo8b8g@anonaddy.me >
Co-committed-by: orangix <uleo8b8g@anonaddy.me >
2023-08-15 20:38:14 +00:00
orangix
a8abb43f3a
Trending page ( #128 )
...
Fixes #46
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/128
Co-authored-by: orangix <orangix@noreply.codeberg.org >
Co-committed-by: orangix <orangix@noreply.codeberg.org >
2023-08-14 22:47:59 +00:00
video-prize-ranch
498e9282e9
Add pages for search
2023-08-10 16:00:42 +00:00
video-prize-ranch
85035243e9
Search ( #122 )
...
#113
Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/122
Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co >
2023-08-10 15:02:51 +00:00
video-prize-ranch
c163ae690e
Support /t/TAG/ID paths ( closes #117 )
2023-06-29 22:23:14 +00:00
video-prize-ranch
b65ee39162
Switch to codeberg.org/rimgo/rimgo
2023-06-10 12:27:20 -04:00
video-prize-ranch
4de1fa1e79
Merge redesign into main ( #111 )
2023-06-10 12:04:29 -04:00
video-prize-ranch
9525106ccc
Use browser headers for image requests
2023-05-26 15:45:59 -04:00
video-prize-ranch
a3feae6b30
Seperate API from UI
2023-01-01 15:12:03 -05:00
video-prize-ranch
5c2962d34d
Improve CSP and security headers (closes #74 )
2022-11-18 12:08:18 -05:00
video-prize-ranch
9d65fa95b4
Switch to Fiber cache ( closes #63 )
2022-10-14 20:27:37 -04:00
video-prize-ranch
23499a9710
Fix error without query params
2022-10-06 06:53:24 -04:00
video-prize-ranch
b6adca7627
Passthrough query parameters on /stack
2022-10-05 22:24:28 -04:00
video-prize-ranch
c93d32a043
Don't force webp on /stack
2022-10-05 22:04:21 -04:00
video-prize-ranch
4306b3bb81
Add image cache and use struct for config ( closes #58 )
2022-09-30 16:57:18 -04:00
video-prize-ranch
f1c058cbfc
Support i.stack.imgur.com ( #61 )
2022-09-30 16:17:24 -04:00
video-prize-ranch
5944b7253d
Improved error handling
2022-09-13 16:31:55 -04:00
video-prize-ranch
1263e66f45
Add error page for ratelimit
2022-09-10 10:11:17 -04:00
video-prize-ranch
d50cf2da86
Add support for .env configuration and privacy page ( closes #44 )
2022-08-04 19:41:55 -04:00
video-prize-ranch
150df2435d
Fix tag backgrounds
2022-07-22 12:20:51 -04:00
video-prize-ranch
e0efe6caca
Move types to api
2022-07-22 11:55:22 -04:00
video-prize-ranch
be349ec9d9
Allow embedding embeds
2022-07-16 16:02:59 -04:00
video-prize-ranch
95eaf959b0
Support embedded images/albums ( closes #41 )
2022-07-16 15:59:06 -04:00
video-prize-ranch
d299219533
Add media-src to CSP
2022-06-25 15:23:59 -04:00
video-prize-ranch
d1a6768cef
Add support for Range headers
2022-06-25 15:23:13 -04:00
video-prize-ranch
ceabddc972
Add documentation for FORCE_WEBP
2022-06-04 20:56:04 -04:00
video-prize-ranch
de49f1c647
Fix bug
2022-06-04 20:48:28 -04:00
video-prize-ranch
b323b26b57
Use WebP if the browser supports it ( #32 )
2022-06-04 20:44:54 -04:00
video-prize-ranch
d05f7f868d
Add 404 page
2022-05-23 11:30:17 -04:00
video-prize-ranch
6eee86d682
Improve code reuse
2022-05-23 11:10:50 -04:00
video-prize-ranch
12684be6aa
Add manifest-src to CSP and add name to manifest ( closes #27 )
2022-04-10 11:21:41 -04:00
video-prize-ranch
5522ec8e99
Readd Redirector config
2022-03-22 16:56:27 -04:00
video-prize-ranch
ff8017d9b1
Replace Redirector with LibRedirect
2022-03-21 22:01:16 -04:00
video-prize-ranch
4572499658
Add support for .gifv ( closes #13 ) and fixes loading media IDs
2022-02-22 19:06:39 -05:00
video-prize-ranch
36793004f8
Display tags in posts ( #11 )
2022-02-21 12:14:00 -05:00
video-prize-ranch
cf5a1ac18b
Delete h.ts
2022-02-21 11:03:18 -05:00
video-prize-ranch
07a202da8f
Initial tags support ( #11 )
2022-02-18 16:56:56 -05:00