Commit graph

23528 commits

Author SHA1 Message Date
ThatOneCalculator
53955ae42f add rust to docker 2023-03-30 19:02:23 -07:00
ThatOneCalculator
c4e681339e dev 18 2023-03-30 18:59: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
0f9f6ee619 chore: up pnpm 2023-03-30 15:10:32 -07:00
Kainoa Kanter
4e4710c344 Merge pull request 'fix: a bug in the KaTeX macro expander' (#9785) from naskya/calckey:fix/katex-macro into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9785
2023-03-30 21:50:03 +00:00
naskya
7c568eefff Fix a bug in the macro expander 2023-03-31 06:31:18 +09:00
ThatOneCalculator
ecb17b9eaf chore: update patron list 2023-03-30 11:29:54 -07:00
cutestnekoaqua
3b7b0f3339 send vlaue 2023-03-30 18:05:39 +02:00
cutestnekoaqua
fd05f18c40 make sure its not checked for akkoma 2023-03-30 17:52:38 +02:00
cutestnekoaqua
1b61d1a58d check for signatures while post import 2023-03-30 17:52:17 +02:00
cutestnekoaqua
cf5671cb05 nyaa 2023-03-30 17:31:29 +02:00
Cleo
7a31740e20 remove debug msgs 2023-03-30 09:30:38 +00:00
Cleo
69daa49403 „packages/backend/src/server/api/endpoints/i/import-posts.ts“ ändern
Signed-off-by: Cleo <cutestnekoaqua@noreply.codeberg.org>
2023-03-30 09:12:51 +00:00
Cleo
fcbdde47d0 Yeet mentions 2023-03-30 08:40:20 +00:00
naskya
c2883ea95b fix: direct boost (#9783)
Sorry to create PR multiple times. I should have included this in #9778.

Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9783
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-30 03:15:06 +00:00
ThatOneCalculator
f3465bed94 chore: 🌐 locale changes
Closes #9781 #9773
2023-03-29 20:14:12 -07:00
naskya
2f47d41b00 feat: custom KaTeX macro (#9779)
Closes: #9759
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9779
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-30 03:11:57 +00:00
Kainoa Kanter
1e54d3ed2c Update 'docs/migrate.md' 2023-03-29 21:11:01 +00:00
Kainoa Kanter
2293c21d64 Update 'docs/migrate.md' 2023-03-29 21:10:00 +00:00
ThatOneCalculator
6aa4a43ca1 fix sounds settings 2023-03-29 13:38:59 -07:00
ThatOneCalculator
ec599f2eeb typo 2023-03-29 13:35:10 -07:00
ThatOneCalculator
203eccaa87 feat: button in admin dash to index posts 2023-03-29 13:30:02 -07:00
ThatOneCalculator
806f2bb8cf fix: 🐛 formlink -> button
fixes notifications and drive in settings
2023-03-29 12:53:07 -07:00
ThatOneCalculator
e80578e911 better icons 2023-03-29 12:47:25 -07:00
ThatOneCalculator
34157eba5d pnpm 8 2023-03-29 12:40:50 -07:00
ThatOneCalculator
e4602d1e20 dev16 2023-03-29 12:39:48 -07:00
ThatOneCalculator
0d1583ada0 Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-29 12:39:17 -07:00
ThatOneCalculator
7e7a7e788a Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-29 12:38:55 -07:00
cutestnekoaqua
4df655126d get post details from object 2023-03-29 21:38:52 +02:00
ThatOneCalculator
5317c9aca8 header icon for queue page 2023-03-29 12:38:38 -07:00
cutestnekoaqua
db392efae8 catch text parsing error 2023-03-29 21:25:28 +02:00
cutestnekoaqua
41c7dfe208 add info 2023-03-29 21:16:45 +02:00
cutestnekoaqua
da322a086b catch errors 2023-03-29 21:15:06 +02:00
cutestnekoaqua
d640af9714 handle mastodon style posts 2023-03-29 21:10:01 +02:00
cutestnekoaqua
365d9bc40a dont ping users 2023-03-29 20:01:56 +02:00
cutestnekoaqua
dfb6178ddf actually increase line num 2023-03-29 19:37:31 +02:00
cutestnekoaqua
f43b5a2537 update post job 2023-03-29 19:36:23 +02:00
cutestnekoaqua
d0f2cbd664 note import debug logs 2023-03-29 19:23:37 +02:00
cutestnekoaqua
b9b693c233 temporary set import limit to infinity for debug 2023-03-29 19:16:39 +02:00
Kainoa Kanter
745bee0a3a Merge pull request 'fix: federating "Boost to Followers"' (#9778) from naskya/calckey:fix/followers-only-boost into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9778
2023-03-29 08:16:12 +00:00
naskya
3eccb04e92 Merge branch 'develop' into fix/followers-only-boost 2023-03-29 02:24:21 +00:00
cutestnekoaqua
86e02468ce why is this git ignored? 2023-03-29 00:09:31 +02:00
cutestnekoaqua
c05703001c why is this git ignored? 2023-03-28 23:48:27 +02:00
cutestnekoaqua
624f305d9c feat: experimental post import 2023-03-28 23:33:16 +02:00
Kagami Sascha Rosylight
4e78a4e0b0 fix: allow announces with followers visibility 2023-03-29 04:55:16 +09:00
Kainoa Kanter
3bfa8e3df3 Merge pull request 'fix: router for the control panel' (#9775) from naskya/calckey:fix/router into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9775
2023-03-28 02:17:57 +00:00
naskya
2eaece9778 Try to fix calckey/calckey#9770 2023-03-28 03:59:07 +09:00
ThatOneCalculator
f708786bbf pnpm 8! 2023-03-26 00:37:11 -07:00
ThatOneCalculator
a4fd0e3e3b Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-25 21:19:26 -07:00
Kaitlyn Allan
e696a13fb2 set workers to reduce their processing priority 2023-03-25 21:19:06 -07:00