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
2b033a813f
revert messaging room
2023-04-24 15:45:34 -07:00
fruye
2ef30e0152
feat: Implement reading Announcements from MastoAPI
2023-04-23 22:17:02 +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
abfbb15fef
Masto api :)
2023-03-22 17:43:05 +01: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
CutestNekoAqua
b712b67df3
use multer upload instead
2023-02-23 16:55:38 +01:00
CutestNekoAqua
6b97e42a7f
update thingy?
2023-02-23 16:42:57 +01:00
CutestNekoAqua
678c3c2483
lol
2023-02-23 16:34:16 +01:00
CutestNekoAqua
506709d2eb
fixed what ever calc did here, masto app didnt
2023-02-23 16:32:21 +01:00
CutestNekoAqua
273b86b9f4
??
2023-02-23 16:26:33 +01:00
CutestNekoAqua
b1d785b486
await the instance meta
2023-02-23 16:12:53 +01:00
CutestNekoAqua
83cc0c9828
import config
2023-02-23 15:58:54 +01:00
CutestNekoAqua
0ca238d680
import multer
2023-02-23 15:55:28 +01:00
CutestNekoAqua
75bd0baf99
remove not needed middleware handlers
2023-02-23 15:46:12 +01:00
CutestNekoAqua
e4a276a989
aaa
2023-02-23 00:31:14 +01:00
CutestNekoAqua
e2ad9a94ec
fix mastodon api stats
2023-02-22 09:44:47 +01:00
ThatOneCalculator
706ebbd853
Masto API meta
2023-02-18 11:58:02 -08:00
ThatOneCalculator
c28e5fcad5
feat: ✨ Show time for users
2023-02-18 11:33:25 -08:00
CutestNekoAqua
a5633b9368
fix oopsie
2023-02-18 17:24:58 +01:00
CutestNekoAqua
cedf306f76
debug print users
2023-02-18 17:22:43 +01:00
CutestNekoAqua
28a31879f8
make relationshiops work
2023-02-18 17:14:16 +01:00
ThatOneCalculator
0e9f9063b4
attempt fix
2023-02-13 19:48:57 -08:00
cutestnekoaqua
a607673019
try again
2023-02-13 20:41:42 +01:00
cutestnekoaqua
c4683c0196
actually return value
2023-02-13 20:38:11 +01:00
cutestnekoaqua
b209a9e533
uwu
2023-02-13 20:36:13 +01:00
cutestnekoaqua
d83e2f2c7a
mew
2023-02-13 20:28:23 +01:00
ThatOneCalculator
68c65044fd
chore: formatting
2023-02-13 11:17:07 -08:00
cutestnekoaqua
57e307ae39
Revert "parse query stuff with bools"
...
This reverts commit 4eb695f3c3acca0510036b13562207d35c7bf7fb.
2023-02-13 19:39:14 +01:00