Commit graph

1140 commits

Author SHA1 Message Date
Namekuji
bef53cc709
adding fedration 2023-05-17 21:18:28 -04:00
s1idewhist1e
85de24f178
add event handling to logger 2023-05-17 14:24:00 -07:00
s1idewhist1e
539971dd05
add custom logging subscriber framework 2023-05-16 23:10:02 -07:00
s1idewhist1e
76766ace7a
Fix some test config options 2023-05-16 13:30:39 -07:00
s1idewhist1e
f183dd23c2
remove some unused code 2023-05-16 12:00:00 -07:00
s1idewhist1e
9d90403ec7
add ability to setup temp config before running a test 2023-05-15 20:42:06 -07:00
s1idewhist1e
cbb4df843a
Change Result<(), Box<dyn Error>> to anyhow::Result<()> 2023-05-15 17:16:23 -07:00
s1idewhist1e
fa63f01ffa
Change cluster_limit in config to an Option<usize>
This was originally a u16 (defaulting to 1) which is more similar to what the old backend config parsing used, but now if it's None tokio can automatically detect the number of worker threads to use based on the number of CPUs.
2023-05-15 16:56:24 -07:00
Namekuji
04a9dc8c97
add url 2023-05-14 04:09:05 -04:00
Namekuji
e69f3b54a9
add default values 2023-05-14 03:30:10 -04:00
Namekuji
bee531ddca remove tokio main 2023-05-14 03:29:05 -04:00
Namekuji
e1a0ab7d25 use thiserror for impl Error and Display 2023-05-14 03:29:05 -04:00
s1idewhist1e
31c425995f
some boilerplate server/tokio runtime stuff 2023-05-13 23:25:50 -07:00
s1idewhist1e
4fb4597e7b
Add macros crate for utility macros 2023-05-13 16:56:38 -07:00
s1idewhist1e
c34aab6ac8
more config initialization 2023-05-09 22:06:08 -07:00
s1idewhist1e
d86a5a7147
Add config iniitialization (I can totally spell) 2023-05-09 00:13:21 -07:00
s1idewhist1e
6033a63446
Move config to its own crate + fix config parsing 2023-05-08 22:42:34 -07:00
s1idewhist1e
92fcfc1a08
more config stuff 2023-05-08 09:33:16 -07:00
s1idewhist1e
ce685af31a
change rust-toolchain file to rust-toolchain.toml 2023-05-08 09:24:53 -07:00
s1idewhist1e
993befbd9c
config parsing 2023-05-04 00:58:15 -07:00
s1idewhist1e
c8b7584fee
add backend .editorconfig that complies with the rust style guide 2023-05-03 18:26:52 -07:00
s1idewhist1e
e3ab697e66
Remove ts from backend and prepare rust environment 2023-04-29 23:10:20 -07:00
ThatOneCalculator
b2e80db219
revert messaging room 2023-04-24 15:45:34 -07:00
naskya
df8294bde3 fix: boost muting in the recommended timeline (#9906)
Closes: #9905
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9906
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-24 19:47:56 +00:00
ThatOneCalculator
64a1c24686
chore: up pakcages 2023-04-23 15:34:50 -07:00
fruye
1a39e7a48e feat: Implement reading Announcements from MastoAPI 2023-04-23 22:17:02 +02:00
naskya
00b45ad726 security: validate image url (#9882)
It looks like url validations are added in f7564d87b0, but I found another validation commit not applied in Calckey, so I cherry-picked 0da0cc80b9 from [Misskey](https://github.com/misskey-dev/misskey).

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9882
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-21 01:50:47 +00:00
ThatOneCalculator
b60a3b509e
chore: update summaly 2023-04-19 21:28:43 -07:00
ThatOneCalculator
89d2a83d7a
email styling 2023-04-19 21:26:49 -07:00
ThatOneCalculator
c6f0047aed
reaction settings auto reload 2023-04-19 20:46:37 -07:00
daikei
2cdaad588c [Fix] Properly replace koa-fix-trailing-slashes with inhouse script (#9870)
This follows up #9869, with an awaited ``next()``, fixing the script.

> I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of koa-remove-trailing-slashes into a 206 byte script that gets the job done well.

(just to show the code does work)
![](https://s3.kitsunes.club/storage/41c7854d-d01e-4f4c-94dd-8b651e2d7367.gif)

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9870
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 22:36:22 +00:00
ThatOneCalculator
c0fe351bed
Revert "[Fix] remove-trailing-slashes with inhouse script (#9869)"
This reverts commit 07db141fc0.
2023-04-17 01:22:31 -07:00
ThatOneCalculator
1ed5ff7caf
Revert "formatting"
This reverts commit b32e1b56fa.
2023-04-17 01:22:25 -07:00
ThatOneCalculator
b32e1b56fa
formatting 2023-04-17 01:03:56 -07:00
daikei
07db141fc0 [Fix] remove-trailing-slashes with inhouse script (#9869)
I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of `koa-remove-trailing-slashes` into a 206 byte script that gets the job done well.

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9869
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 08:02:29 +00:00
ThatOneCalculator
1824b27e16
chore: formatting 2023-04-14 15:35:18 -07:00
daikei
c959d4185c remove koa-favicon 2023-04-14 16:20:27 +00:00
daikei
1b9a776220 replace koa-favicon with a small patch of code
This should remove a needless dependency and replace it with a tiny, simple koa router
2023-04-14 16:18:50 +00:00
ThatOneCalculator
4694e30573
chore: up swc 2023-04-13 09:43:13 -07:00
naskya
46864916d9
Allow to mute my own boosts 2023-04-12 15:52:46 +09:00
Kainoa Kanter
306fcb63d4 Merge pull request 'fix: retrieve remote user again when migrating' (#9826) from nmkj/calckey:fix-alsoknownas into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9826
2023-04-08 06:15:27 +00:00
Kainoa Kanter
437a6e29a5 chore: formatting 2023-04-07 22:46:10 -07:00
Namekuji
67dbb2318a fetch person again 2023-04-08 01:44:50 -04:00
naskya
a624aeebe3 feat: per-user boost muting (#9825)
Cherry-picked from FoundKey/c414f24a2c ([commit](c414f24a2c))

This allows us to hide specified users' boosts from the timelines (the boosts will still be visible on their user page).

Co-authored-by: Hélène <pleroma-dev@helene.moe>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9825
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-08 05:44:36 +00:00
Kainoa Kanter
621be91cdb Revert "Revert "Incorporate calckey-js into calckey repository (#9820)""
This reverts commit 8033492c7c.
2023-04-07 17:44:27 -07:00
Kainoa Kanter
8033492c7c Revert "Incorporate calckey-js into calckey repository (#9820)"
This reverts commit 37c0423da6.
2023-04-07 17:35:10 -07:00
Kainoa Kanter
49c44771e5 Merge pull request 'fix: followers transfer via account migration' (#9822) from nmkj/calckey:fix-move into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9822
2023-04-08 00:06:08 +00:00
Namekuji
62a439c693 fix move inbox 2023-04-07 17:48:25 -04:00
Kaity A
37c0423da6 Incorporate calckey-js into calckey repository (#9820)
Closes #9712.

Co-authored-by: Kaity A <kaity@theallans.com.au>
Co-authored-by: Ken Allan <ken@norganna.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9820
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-04-07 14:25:22 +00:00
Namekuji
b03479c7b4 fix id of move activity 2023-04-07 06:39:29 -04:00