Laura Hausmann
4b76d0ce6f
[mastodon-client] Migrate endpoints to auth middleware
2023-10-06 01:08:30 +02:00
Laura Hausmann
01b5af2686
[mastodon-client] PATCH /v1/accounts/update_credentials
2023-10-05 19:22:41 +02:00
Laura Hausmann
f5e28fc27a
[mastodon-client] Refactor object id converters
2023-10-04 23:54:45 +02:00
Laura Hausmann
b8b6206b4e
[mastodon-client] Fix link pagination default limits
2023-10-04 22:01:17 +02:00
Laura Hausmann
d2c9238a18
[mastodon-client] Add stubs for featured_tags and followed_tags
2023-10-04 22:01:17 +02:00
Laura Hausmann
4fe62e62c3
[mastodon-client] GET /accounts/:id/lists
2023-10-04 22:01:17 +02:00
Laura Hausmann
4559b135cb
[mastodon-client] Code cleanup & reformat
2023-10-04 22:01:16 +02:00
Laura Hausmann
366311a8b1
[mastodon-client] Refactor api router init
2023-10-04 22:01:13 +02:00
Laura Hausmann
19a990aebb
[mastodon-client] Improve query filters for /accounts/:id/statuses
2023-10-04 22:01:12 +02:00
Laura Hausmann
5e20c3ae06
[mastodon-client] Stub for PATCH /accounts/update_credentials
2023-10-04 22:01:11 +02:00
Laura Hausmann
bdc5b778f2
[mastodon-client] GET /accounts/verify_credentials
2023-10-04 22:01:11 +02:00
Laura Hausmann
40f89213a5
[mastodon-client] Code cleanup
2023-10-04 22:01:11 +02:00
Laura Hausmann
3fd98eb88a
[mastodon-client] GET /accounts/lookup
2023-10-04 22:01:11 +02:00
Laura Hausmann
45d005fa1a
[mastodon-client] POST /follow_requests/:id/authorize, POST /follow_requests/:id/reject
2023-10-04 22:01:11 +02:00
Laura Hausmann
3dc6bf49b2
[mastodon-client] GET /follow_requests
2023-10-04 22:01:10 +02:00
Laura Hausmann
0747e24256
[mastodon-client] GET /blocks
2023-10-04 22:01:10 +02:00
Laura Hausmann
82c96392c2
[mastodon-client] GET /mutes
2023-10-04 22:01:10 +02:00
Laura Hausmann
f667f2f985
[mastodon-client] POST /accounts/:id/mute, POST /accounts/:id/unmute; Fix timeline helper function
2023-10-04 22:01:10 +02:00
Laura Hausmann
3c22417a31
[mastodon-client] POST /accounts/:id/block, /accounts/:id/unblock
2023-10-04 22:01:10 +02:00
Laura Hausmann
deeb71856d
[mastodon-client] GET /accounts/relationships
2023-10-04 22:01:10 +02:00
Laura Hausmann
5c999a20d0
[mastodon-client] POST /accounts/:id/follow, POST /accounts/:id/unfollow
2023-10-04 22:01:10 +02:00
Laura Hausmann
9d59ee09fd
[mastodon-client] Improve link pagination helper function
2023-10-04 22:01:09 +02:00
Laura Hausmann
7da7b6e09b
[mastodon-client] Proper pagination for /bookmarks & /favorites
2023-10-04 22:01:08 +02:00
Laura Hausmann
d3a88ff613
[mastodon-client] GET /favourites
2023-10-04 22:01:08 +02:00
Laura Hausmann
376bfc6b13
[mastodon-client] GET /bookmarks
2023-10-04 22:01:08 +02:00
Laura Hausmann
f8be4533df
[mastodon-client] Allow unauthorized uses to access /accounts/:id/statuses
2023-10-04 22:01:08 +02:00
Laura Hausmann
97067648e8
[mastodon-client] GET /accounts/:id/following
2023-10-04 22:01:07 +02:00
Laura Hausmann
c86ab31a29
[mastodon-client] Proper pagination for /accounts/:id/followers
2023-10-04 22:01:07 +02:00
Laura Hausmann
05c32e719c
[mastodon-client] GET /accounts/:id/followers
2023-10-04 22:01:07 +02:00
Laura Hausmann
e90b679864
[mastodon-client] Cache account/user data per api call
2023-10-04 22:01:06 +02:00
Laura Hausmann
16c10f55a3
[mastodon-client] Fix GET /accounts/:id/statuses
2023-10-04 22:01:06 +02:00
Laura Hausmann
0aeeeca076
[mastodon-client] GET /accounts/:id/statuses
2023-10-04 22:01:06 +02:00
Laura Hausmann
2fe58b0017
[mastodon-client] Refactor converters
2023-10-04 22:01:04 +02:00
Laura Hausmann
d258789c34
[mastodon-client] GET /accounts/:id
2023-10-04 22:01:04 +02:00
Luna D Dragon
91b8b7b76b
Defry the fish ( #125 )
...
Co-authored-by: Luna <luna.dragon@suse.com>
Reviewed-on: https://iceshrimp.dev/iceshrimp/iceshrimp/pulls/125
Co-authored-by: Luna D Dragon <lunarequest@nullrequest.com>
Co-committed-by: Luna D Dragon <lunarequest@nullrequest.com>
2023-08-21 16:14:53 +02:00
ThatOneCalculator
2913eddbce
we be renamin
2023-07-15 14:21:17 -07:00
ThatOneCalculator
6bc25eb38b
Merge branch 'develop' into rebrand
2023-07-15 14:15:01 -07:00
Laura Hausmann
b0cf9c6faa
Revert "Revert "[mastodon-client] send actual default post privacy instead of fallback value""
...
This reverts commit a441cc6067c487c563bf673be261a179d96e0533.
2023-07-10 18:58:15 +02:00
ThatOneCalculator
b23d5bb16f
Revert "[mastodon-client] send actual default post privacy instead of fallback value"
...
This reverts commit 81145570fcb458a9239f88fe9a273d6c2f1810d3.
2023-07-09 20:12:16 -07:00
Laura Hausmann
8f7f078f08
[mastodon-client] send actual default post privacy instead of fallback value
2023-07-09 00:58:45 +02:00
Laura Hausmann
8347855a11
[mastodon-client] general code cleanup, rename megalodon package
2023-07-06 02:16:51 +00:00
Laura Hausmann
8a6a1cfc43
[mastodon-client] Code formatting pass
2023-07-06 02:16:51 +00:00
Laura Hausmann
1f8c735889
[mastodon-client] megalodon compat changes
2023-07-06 02:16:51 +00:00
Laura Hausmann
23d57eb79f
[mastodon-client] Add endpoints
2023-07-06 02:16:51 +00:00
ThatOneCalculator
6c7f0521aa
find and replace
2023-07-02 15:18:30 -07:00
ThatOneCalculator
2d0ace0685
chore: formatting
2023-05-01 20:32:18 -07:00
fruye
0cf2e71b2e
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
fruye
05b2f9b89d
fix: Declare /api/v1/accounts/relationships before /api/v1/accounts/:id
...
Previously the 'relationships' part was considered to be an account id
and was handled by completely different API endpoint.
2023-04-28 20:03:06 +02:00
ThatOneCalculator
19c4a59513
formatting
2023-03-30 19:10:03 -07:00
s1idewhist1e
981d3ee725
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