Commit graph

274 commits

Author SHA1 Message Date
naskya
98d7eac51b
chore (backend-rs): use sea_orm::prelude 2024-06-03 08:20:39 +09:00
naskya
4e8f0c2e85
chore: update auto-generated file 2024-06-02 03:53:58 +09:00
naskya
8293ed8e87
chore (backend-rs): more documents on NodeInfo 2024-06-01 11:25:20 +09:00
naskya
23c8636129
chore (backend-rs, macro-rs): fix comment style 2024-06-01 02:23:58 +09:00
naskya
3407e4b395
chore (backend-rs): address cargo doc warning 2024-06-01 02:04:02 +09:00
naskya
9ad284bd67
chore (backend-rs): rename partial note structs 2024-05-31 21:42:59 +09:00
naskya
2e44357665
chore (backend-rs): remove unneeded serde derives 2024-05-31 21:28:53 +09:00
naskya
a2555fc65d
chore: minimize Rust dependencies
It is unclear if this is worth the effort to manage
(so this may be reverted later) but at least it seems
we could remove a bunch of lines from the lockfile
by removing unused feature flags.
2024-05-30 19:27:05 +09:00
naskya
890ca846d0
chore (backend-rs): documents, organize exports, typo fixes 2024-05-30 07:07:01 +09:00
naskya
fac69f8eb5
chore (backend-rs): don't use unsafe unwrap() in examples 2024-05-29 19:26:01 +09:00
naskya
27de1ddb70
chore (backend-rs): add comments 2024-05-28 19:42:52 +09:00
naskya
d1f25e8fba
dev: update editorconfig 2024-05-28 17:32:34 +09:00
naskya
abbbfa9a0a
chore: update auto-generated files 2024-05-27 21:01:42 +09:00
naskya
ef2d19660c
chore: regenerate auto-generated files 2024-05-27 20:59:23 +09:00
naskya
42ec6cffa1
chore (backend-rs): address cargo doc warning 2024-05-27 00:07:54 +09:00
naskya
4968e370f5
test (backend-rs): add timestamp check 2024-05-27 00:05:53 +09:00
naskya
293c1c6540
chore (backend-rs): some more comments 2024-05-24 22:36:48 +09:00
naskya
589324cd6d
chore (backend-rs): update comment 2024-05-24 22:20:52 +09:00
naskya
35f30d9895
chore (backend-rs): make internal functions/modules private 2024-05-24 22:18:32 +09:00
naskya
0e9d7f388a
fix (backend-rs): don't check quoted post in antennas 2024-05-24 22:11:56 +09:00
naskya
985532b2aa
chore (backend-rs): remove unused feature flag 2024-05-24 02:43:20 +09:00
naskya
9c60e8ff8b
chore (backend-rs): address cargo doc warnings 2024-05-24 01:19:17 +09:00
naskya
81e633eec3
chore (backend-rs): antenna::add_new_note -> antenna::process_new_note 2024-05-23 20:49:49 +09:00
naskya
85d44aaa2d
chore (backend-rs): remove 'Err' suffix from error variants
https://rust-lang.github.io/rust-clippy/master/index.html#/enum_variant_names
2024-05-23 20:49:49 +09:00
naskya
55ed733df8
chore (backend): remove '_enum' suffix from enum types 2024-05-23 20:49:49 +09:00
naskya
0c0e6a26fa
test (backend-rs): add parse_nodeinfo_2_1 testcase 2024-05-21 23:18:59 +09:00
naskya
b24530065e
fix (backend-rs): wrong unwrap_or usage 2024-05-21 22:57:33 +09:00
naskya
da9fe83986
perf (backend-rs): reduce note copy operations 2024-05-21 16:12:11 +09:00
naskya
1f082bfb56
chore (macro-rs): ts_only_warn -> ts_export 2024-05-21 16:12:11 +09:00
naskya
4bb6f6e0e3
chore (backend-rs): cleanup 2024-05-21 16:12:11 +09:00
naskya
d750af3d79
fix (backend-rs): don't check in-reply-to post in antennas 2024-05-21 16:12:10 +09:00
naskya
f1e3395783
fix (backend-rs): active users count in nodeinfo (close #10935) 2024-05-21 16:12:07 +09:00
naskya
06bed6f230
Merge branch 'develop' into feat/schedule-create 2024-05-20 20:02:43 +09:00
naskya
84c374da20
chore (backend-rs): cleanup 2024-05-20 19:23:54 +09:00
naskya
196f8c13ec
chore: update auto-generated files 2024-05-19 20:01:31 +09:00
naskya
8174d646f9
fix (backend): add back timezone 2024-05-19 19:15:58 +09:00
naskya
c73ce2ff39
chore (backend-rs): don't iterate the same process 2024-05-19 12:49:45 +09:00
naskya
797c768f24
feat (backend-rs): add Mastodon push notification type 2024-05-19 12:19:58 +09:00
naskya
1c0d2e43b4
chore (backend-rs, minor): use crate::export 2024-05-18 19:45:38 +09:00
sup39
c4a7cd6029
refactor (backend): port greet to backend-rs
Co-authored-by: naskya <m@naskya.net>
2024-05-18 17:39:45 +08:00
sup39
2a8193fa6c
meta: macro_rs -> macro-rs 2024-05-18 17:39:45 +08:00
sup39
ada5ff7e75
refactor (backend-rs): read version from package.json at compile time 2024-05-18 17:39:17 +08:00
naskya
abc9d58f7c
refactor (backend-rs): use bb8 connection pool for Redis 2024-05-18 13:20:47 +09:00
Daniel Smith
ab3ca2a20b
feat (backend-rs): impl bb8::ManageConnection for RedisConnectionManager
62597aa45a/redis/src/lib.rs

Co-authored-by: Kyle Huey <khuey@kylehuey.com>
2024-05-18 13:20:47 +09:00
naskya
fdc77b74ae
chore: lint 2024-05-18 13:20:46 +09:00
naskya
61562a0943
refactor (backend-rs): use async redis commands 2024-05-18 13:20:43 +09:00
naskya
29023d7240
test (backend-rs): add unit test for word mute 2024-05-17 18:59:06 +09:00
naskya
2fdd165144
chore (backend-rs): add TODO comment 2024-05-17 18:12:27 +09:00
naskya
1e313846ca
fix (backend-rs): typo 2024-05-17 18:03:34 +09:00
naskya
ffa08748d0
refactor (backend): don't check word mute twice 2024-05-17 17:59:45 +09:00
naskya
5e53f9a8cf
refactor (backend): port check-hit-antenna to backend-rs 2024-05-17 17:59:45 +09:00
naskya
a4779f233b
refactor (backend): convert jsonb to array 2024-05-17 17:59:45 +09:00
naskya
3d28acb2c9
chore (backend-rs): rename types and modules 2024-05-17 07:32:08 +09:00
naskya
7d4d1c1fbd
fix merge mistake 2024-05-16 08:45:50 +09:00
naskya
41b32c5535 refactor (backend): port push notification sender to backend-rs 2024-05-15 22:19:58 +00:00
naskya
dddd2779c0
chore: update auto-generated files 2024-05-16 04:57:48 +09:00
naskya
28e2a24585
chore (backend-rs): cleanup 2024-05-15 16:45:35 +09:00
naskya
2884b2fb42
chore (backend-rs): apply clippy fix 2024-05-15 16:36:26 +09:00
naskya
d8e1ab63c0
refactor: port system information checker to backend-rs
network stat is removed because it might be inaccurate and/or
it should be monitored by other system tools, but it may be added back
later if it is wanted
2024-05-15 16:26:46 +09:00
naskya
fa35d1f4dd
meta: remove node version info from backend-rs/package.json 2024-05-12 00:52:27 +09:00
CI
e5a5d715b6 chore(deps): update node.js to v20 2024-05-11 15:41:52 +00:00
CI
6d6c0fbca0 chore(deps): update dependency @napi-rs/cli to v2.18.3 2024-05-11 14:05:03 +00:00
naskya
aa266d91e0
chore (backend-rs): impl From<Acct> for String 2024-05-11 04:54:30 +09:00
naskya
d1b33ad76f
chore (backend-rs): move acct to another directory 2024-05-11 04:31:59 +09:00
naskya
4d3072929e
chore (backend-rs): update doctest comment 2024-05-10 06:59:05 +09:00
naskya
612ce48f44
chore (backend-rs): impl FromStr and Display for Acct 2024-05-10 06:55:51 +09:00
naskya
95fd20a46f
feat (macro-rs): add ts_only_warn macro 2024-05-10 06:54:26 +09:00
naskya
4a81106cf5
chore (backend): remove generate-native-user-token 2024-05-09 21:49:56 +09:00
naskya
cda31d3dc7
Revert "refactor (backend): port publishNotesStream to backend-rs"
This reverts commit 5382dc5da8.

It turns out this sends an inccorect time info to the stream
since JavaScript's Date object doesn't have timezone info

I'll revisit this in the future
2024-05-08 06:08:26 +09:00
naskya
5382dc5da8
refactor (backend): port publishNotesStream to backend-rs 2024-05-08 02:15:07 +09:00
naskya
14b285f882 Merge branch 'refactor/is-safe-url' into 'develop'
refactor (backend): port isValidUrl to backend-rs


See merge request firefish/firefish!10795
2024-05-06 17:11:51 +00:00
naskya
5b01d3574f
refactor (backend): port isValidUrl to backend-rs 2024-05-07 00:56:37 +09:00
naskya
e3a98ebc72 Merge branch 'userLang' into 'develop'
Add server-side per-user UI language

Co-authored-by: eana <coder@apps.1a23.com>

See merge request firefish/firefish!10793
2024-05-06 15:31:18 +00:00
naskya
8ed942e00f
chore: update auto-generated files 2024-05-06 23:13:31 +09:00
naskya
dd74eabae1
refactor (backend): port nodeinfo fetcher to backend-rs 2024-05-06 08:12:21 +09:00
naskya
711618b42c
test (backend-rs): add tests for nodeinfo (de)serialization 2024-05-06 05:20:13 +09:00
naskya
510207b101
refactor (backend-rs): separate nodeinfo generator and schema 2024-05-06 04:23:38 +09:00
naskya
49825853c1
refactor (backend): port nodeinfo generator to backend-rs 2024-05-06 03:01:55 +09:00
naskya
359fef0a42
chore: replace old comments 2024-05-05 21:22:57 +09:00
naskya
d114b8ec1d
chore: format 2024-05-05 14:58:56 +09:00
naskya
d2471b6db7
refactor (backend-rs): replace reqwest with isahc
reqwest is feature-rich, but we will need isahc http client for push notifications (!10760)
isahc http client is also good btw :)
2024-05-05 14:53:45 +09:00
naskya
4992999bb7
test (backend-rs): add tests 2024-05-04 22:59:49 +09:00
naskya
38c0de39b9
chore (backend-rs): add docs for functions in database/cache 2024-05-04 22:50:46 +09:00
naskya
722d090f8d
chore (backend-rs): remove unneeded 'static 2024-05-04 22:49:11 +09:00
naskya
b185c0c87e
feat (backend-rs): add cache::delete_all 2024-05-04 21:24:20 +09:00
naskya
8c22b0d07f
test (backend-rs): fix version format 2024-05-04 16:17:33 +09:00
naskya
0f4c05a64f
ci: add 'ci' feature flag to backend-rs 2024-05-04 16:14:23 +09:00
naskya
369b1d72df
fix/perf (backend): port latest version check to backend-rs, address excessive requests to firefish.dev 2024-05-04 14:44:20 +09:00
naskya
e6ba0a002f
refactor (backend-rs): add cache::{get_one, set_one, delete_one} 2024-05-04 13:22:20 +09:00
naskya
37e03007f0
refactor (backend-rs): misc/redis_cache -> database/cache 2024-05-04 13:22:20 +09:00
naskya
cc560811cf
test (backend-rs): remove ava in favor of cargo test 2024-04-27 11:23:16 +09:00
naskya
38cd4bafde
refactor (backend): port publishGroupMessagingStream to backend-rs 2024-04-27 08:36:12 +09:00
naskya
37cf4f8361
chore (backend-rs): tweak logger config 2024-04-26 13:51:28 +09:00
naskya
d40db1ee7e
refactor (backend): port publishBroadcastStream to backend-rs 2024-04-26 13:30:13 +09:00
naskya
0caba566e6
refactor (backend): port publishMessagingIndexStream to backend-rs 2024-04-26 13:11:11 +09:00
naskya
883645a581
chore (backend-rs): regenerate index.d.ts 2024-04-26 12:14:34 +09:00
naskya
3190f66740
chore (backend): convert TypeORM's simple-array into normal array 2024-04-26 12:03:12 +09:00
naskya
b58d940e71
fix (backend-rs): add openssl as a dependency 2024-04-26 07:13:09 +09:00
naskya
42f704b515
chore (backend-rs): remove whitespaces 2024-04-26 06:51:52 +09:00
naskya
8534154792
chore (backend-rs): add comment 2024-04-26 06:30:30 +09:00