Commit graph

44 commits

Author SHA1 Message Date
ThatOneCalculator 15e8db0563
feat: 🔒 expand /api/v1/instance/peers to proper endpoint and check for private mode
Closes #10358
2023-06-24 13:00:50 -07:00
fruye c3d747e42d Use numeric ids everywhere in mastodon API (#9970)
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9970
Co-authored-by: fruye <fruye@unix.dog>
Co-committed-by: fruye <fruye@unix.dog>
2023-04-30 19:34:52 +00:00
ThatOneCalculator 8e22a211d1
fix: add route 2023-04-26 19:51:25 -07:00
Kainoa Kanter 7fb130b06e formatting 2023-04-06 18:56:46 -07:00
ThatOneCalculator bb6d04f9c3
fix import 2023-04-01 23:28:55 -07:00
ThatOneCalculator acfc88389a
formatting 2023-03-30 19:10:03 -07:00
s1idewhist1e c58ce6c53b Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00
Luna e198a34cd0 Small fix to Masto ID conversion code 2023-03-13 00:44:38 -04:00
Luna c81d6ecc1e
Proxy object IDs for Mastodon API to prevent Calckey ID format incompatibilities 2023-03-11 16:02:35 -05:00
cutestnekoaqua 980d447561
parse full multipart data to media endpoints 2023-03-01 15:53:40 +01:00
CutestNekoAqua 19d84a73ac aa 2023-02-23 17:38:18 +01:00
CutestNekoAqua 0be450d95f meow? 2023-02-23 17:20:34 +01:00
CutestNekoAqua 41d696c6ca maybe buffer? 2023-02-23 17:13:35 +01:00
CutestNekoAqua 91df15209a this is the sign I need a break 2023-02-23 17:07:49 +01:00
CutestNekoAqua 1728419130 move file upload to new router 2023-02-23 17:02:02 +01:00
CutestNekoAqua f5537af8a1 aaa 2023-02-23 00:31:14 +01:00
ThatOneCalculator e9d55ff44b
chore: formatting 2023-02-13 11:17:07 -08:00
cutestnekoaqua 68b2dcfd75
feat: #9614 2023-02-13 15:12:21 +01:00
ThatOneCalculator 254a9e8716
docs: 📝 custom assets 2023-02-11 13:16:45 -08:00
cutestnekoaqua 103d655ed4
i need to seperate 404 to own route 2023-02-11 00:51:50 +01:00
ThatOneCalculator fcc59cd35f
chore: Rome Formatting 2023-02-10 15:41:19 -08:00
cutestnekoaqua fadf8144de
meow 2023-02-11 00:40:04 +01:00
cutestnekoaqua 1a714fb8e4
ree 2023-02-11 00:35:30 +01:00
cutestnekoaqua d103d69727
split routers 2023-02-11 00:33:01 +01:00
cutestnekoaqua 8fdd3e09c6
revert it for now 2023-02-11 00:19:52 +01:00
cutestnekoaqua 450c92f3e7
Revert "use formidable instead"
This reverts commit b8406ecaa4.
2023-02-11 00:19:52 +01:00
cutestnekoaqua 34de28cddf
Revert "meow?"
This reverts commit 6e79148152.
2023-02-11 00:19:52 +01:00
cutestnekoaqua 5d33c34aa8
Revert "remove body parser settings for now"
This reverts commit 41ce22aa1c.
2023-02-11 00:19:52 +01:00
cutestnekoaqua 41ce22aa1c
remove body parser settings for now 2023-02-11 00:08:26 +01:00
cutestnekoaqua 6e79148152
meow? 2023-02-11 00:02:20 +01:00
cutestnekoaqua b8406ecaa4
use formidable instead 2023-02-10 23:50:27 +01:00
cutestnekoaqua 6cfdc31e94
use multer instead 2023-02-10 23:29:29 +01:00
cutestnekoaqua 838ca1841a
this is super cursed 2023-02-10 23:00:15 +01:00
cutestnekoaqua 62f1b799f8
Revert "shrugs"
This reverts commit 5a3f84a934.
2023-02-10 00:59:16 +01:00
cutestnekoaqua 5a3f84a934
shrugs 2023-02-10 00:54:10 +01:00
cutestnekoaqua c68c01a09e
wip masto api
co-authored-by: cutls <web-pro@cutls.com>
2023-02-07 22:56:39 +01:00
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
ineffyble 93654b7e2c Fix peers API returning suspended instances 2022-12-23 04:32:45 +00:00
Kaity A 0a34d92130 Add mastodon compatibility APIs 2022-12-19 09:58:37 +00:00
syuilo 58e83f8e4f feat: allow GET for some endpoints
Resolve #8263
2022-06-25 18:26:31 +09:00
syuilo 1c67c26bd8
refactor: migrate to typeorm 3.0 (#8443)
* wip

* wip

* wip

* Update following.ts

* wip

* wip

* wip

* Update resolve-user.ts

* maxQueryExecutionTime

* wip

* wip
2022-03-26 15:34:00 +09:00
syuilo d071d18dd7
refactor: Use ESM (#8358)
* wip

* wip

* fix

* clean up

* Update tsconfig.json

* Update activitypub.ts

* wip
2022-02-27 11:07:39 +09:00
syuilo c69b72e199 fix lint 2021-12-09 23:58:30 +09:00
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00
Renamed from src/server/api/index.ts (Browse further)