April John
701fc6d275
beban work on account domains
2023-08-01 21:23:32 +02:00
Laura Hausmann
b462e9d1fc
chore: code reformat
2023-07-27 00:44:38 +02:00
Laura Hausmann
6be6b6ed7c
Improve /api/v1/instance accuracy
2023-07-22 20:56:22 +02:00
Laura Hausmann
5543a65936
Revert "Fix megalodon imports"
...
This reverts commit 36a0c72d7fc31ebee4e8f3cf7fdc57f7dad2d945.
2023-07-22 13:11:32 +02:00
Laura Hausmann
bb60b7e107
Fix megalodon imports
2023-07-21 21:25:31 +02:00
Laura Hausmann
485640589e
Rebrand
2023-07-21 13:50:34 +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
3a9e917e2e
[mastodon-client] return 404 instead of 401 on NO_SUCH_NOTE
2023-07-09 23:39:48 +02:00
Laura Hausmann
8d988e6456
[mastodon-client] fix posting polls
2023-07-09 23:32:01 +02:00
marcin mikołajczak
081a3177b8
Fix Mastodon compatibility string
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-07-09 18:22:53 +02: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
32210f636d
[mastodon-client] remove reactions reply
2023-07-09 00:58:44 +02:00
Laura Hausmann
a5be7c3ac8
[mastodon-client] handle user & note URLs in search
2023-07-08 04:11:41 +02:00
Laura Hausmann
22825ae76a
[mastodon-client] fix search type param
2023-07-07 23:47:21 +02:00
Laura Hausmann
a94bf84f04
[mastodon-client] implement favorited_by
2023-07-07 22:42:39 +02:00
Laura Hausmann
197977c3a8
[mastodon-client] Fix global timeline
2023-07-07 19:30:23 +02:00
Laura Hausmann
52b4fdf0d2
[mastodon-client] code cleanup, remove redundant function calls
2023-07-06 02:16:51 +00:00
Laura Hausmann
8347855a11
[mastodon-client] general code cleanup, rename megalodon package
2023-07-06 02:16:51 +00:00
Laura Hausmann
fbeb809874
[mastodon-client] Disable emoji reactions preview in TL
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
37b21f973f
[mastodon-client] Fix posting statuses with attachment
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
Namekuji
1e4a45ff7c
fix aode-relay compatibility
2023-06-16 03:48:39 -04:00
ThatOneCalculator
a3415159be
Revert "chore: formatting"
...
This reverts commit 36283b9a358886bfcf6f40c04b5bed1fe6088ff5.
2023-06-05 21:15:49 -07:00
ThatOneCalculator
115f92c8d0
chore: formatting
2023-06-05 16:40:48 -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
fruye
14e59f2401
fix: Get list titles from Form data when creating and updating lists
...
This change will actually make it possible for Mastodon clients to
create and rename lists, as they send the title in a Form data instead
of a query string.
https://docs.joinmastodon.org/methods/lists/#form-data-parameters
2023-04-27 22:42:10 +02:00
fruye
67b0e9e2dc
fix: Make statusModel created_at fields be ISO 8601 strings
...
This makes the 'Reactions to this post' status (seen when viewing
a status context) send the correct data type for `created_at` fields.
https://docs.joinmastodon.org/entities/Account/#created_at
https://docs.joinmastodon.org/entities/Status/#created_at
2023-04-27 21:54:51 +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
ThatOneCalculator
cdcd4320a9
fix?
2023-03-24 13:14:41 -07:00
ThatOneCalculator
21061b6803
feat: masto api add display name
2023-03-23 16:16:27 -07:00
cutestnekoaqua
3122701186
pass auth to metadata
2023-03-18 13:06:49 +01:00
cutestnekoaqua
3e748cb401
fix: intermediarily convert ids
2023-03-18 12:23:03 +01:00
cutestnekoaqua
9c0416df65
add 404 as replacements
2023-03-18 12:09:43 +01:00
fruye
3d7868c9dc
fix: Parse mastoAPI limit argument in more places & Improve converting arguments to boolean ( #9716 )
...
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9716
Authored-by: fruye <fruye@unix.dog>
Signed-off-by: Cleo John <waterdev@galaxycrow.de>
Co-authored-by: fruye <fruye@unix.dog>
Co-committed-by: fruye <fruye@unix.dog>
2023-03-17 13:58:01 +00:00
fruye
b62b1d43d6
fix: Run to boolean conversion in mastoAPI public and hashtag timelines
...
The `only_media` query parameter in `/api/v1/timelines/public` and
`/api/v1/timelines/tag/:hashtag` was previously passed directly as-is to
the Misskey API, which made it pretty upset because it was receiving a
string named 'true' instead of the value 'true'.
Needed for pleromaFE to display a timeline.
2023-03-15 23:09:19 +01:00
Luna
2d7225a179
Proxy object IDs for Mastodon API to prevent Calckey ID format incompatibilities
2023-03-11 16:02:35 -05:00
Luna
07d45c6a70
Convert limit parameter to int for certain Mastodon account endpoints
2023-03-11 16:02:35 -05:00
Cleo John
447547b911
fix errors
2023-02-28 17:38:48 +01:00
Cleo John
83494b707d
more mastodon work
2023-02-28 17:23:04 +01:00
CutestNekoAqua
50687ef209
move file upload to new router
2023-02-23 17:02:02 +01:00
CutestNekoAqua
76a4228de3
oh ich hab verkackt
2023-02-23 16:57:21 +01:00