Commit Graph

12 Commits

Author SHA1 Message Date
Mohamed Bassem
2dbdf76c75 fix: reject spoofed content types on uploads 2025-12-27 00:36:21 +00:00
Mohamed Bassem
1369ad01ce fix!: changing default for includeContent to be false in the API 2025-12-12 09:56:17 +00:00
Mohamed Bassem
3e8cc745dd fix: Add cache control header on asset endpoints 2025-12-10 08:04:15 +00:00
Mohamed Bassem
3760d23abc refactor: Extract quota logic into its own class 2025-09-06 06:25:15 +00:00
MohamedBassem
a4b2fc7ca8 fix(security): Add CSP policies on asset serving path 2025-08-23 16:03:06 +03:00
MohamedBassem
096af7efff fix: Dont attempt to remove uploaded tmp file if it's already removed 2025-08-22 21:45:49 +03:00
MohamedBassem
39a650f634 fix: Sanitize uploaded file names. #1765 2025-08-22 21:36:44 +03:00
Mohamed Bassem
384432d31e feat: Add per user storage quota 2025-07-06 16:32:35 +00:00
Mohamed Bassem
d66b3b8619 feat: Add support for S3 as an asset storage layer (#1703)
* feat: Add support for S3 as an asset storage layer. Fixes #305

* some minor fixes

* use bulk deletion api

* stream the file to s3
2025-07-04 23:58:42 +01:00
Mohamed Bassem
ea1d0023bf feat: Add support for public lists (#1511)
* WIP: public lists

* Drop viewing modes

* Add the public endpoint for assets

* regen the openapi spec

* proper handling for different asset types

* Add num bookmarks and a no bookmark banner

* Correctly set page title

* Add a not-found page

* merge the RSS and public list endpoints

* Add e2e tests for the public endpoints

* Redesign the share list modal

* Make NEXTAUTH_SECRET not required

* propery render text bookmarks

* rebase migration

* fix public token tests

* Add more tests
2025-06-01 20:46:41 +01:00
Mohamed Bassem
9695bba2e9 feat: Generate RSS feeds from lists (#1507)
* refactor: Move bookmark utils from shared-react to shared

* Expose RSS feeds for lists

* Add e2e tests

* Slightly improve the look of the share dialog

* allow specifying a limit in the rss endpoint
2025-05-31 18:46:04 +01:00
Mohamed Bassem
3505cb7d64 refactor: Migrate from NextJs's API routes to Hono based routes for the API (#1432)
* Setup Hono and migrate the highlights API there

* Implement the tags and lists endpoint

* Implement the bookmarks and users endpoints

* Add the trpc error code adapter

* Remove the old nextjs handlers

* fix api key not found handling

* Fix trpc error handling

* Fix 204 handling

* Fix search ordering

* Implement the singlefile endpoint

* Implement the asset serving endpoints

* Implement webauth

* Add hono as a catch all route under api

* fix tests
2025-05-18 16:58:08 +01:00