Commit graph

405 commits

Author SHA1 Message Date
naskya
581668c306
chore (backend-rs): more connection checks 2024-06-10 18:09:26 +09:00
naskya
37f9078606
chore (backend-rs): shorten doc link text 2024-06-09 21:29:41 +09:00
naskya
5948e72382
Merge branch 'develop' into iceshrimp_mastodon 2024-06-09 21:18:40 +09:00
naskya
679749a2cc
chore (backend-rs): rename modules to more comfortable names 2024-06-09 21:12:41 +09:00
naskya
870d625565
Merge branch 'develop' into iceshrimp_mastodon 2024-06-09 18:30:27 +09:00
sup39
132af64a6e
refactor (backend-rs): create all_texts macro 2024-06-09 16:34:58 +08:00
naskya
09d975bdce
chore (backend-rs): accept clippy suggestions 2024-06-09 14:02:24 +09:00
naskya
839d4c4d14
chore (backend-rs): PartialNoteToElaborate -> PartialNoteToCheckWordMute
Co-authored-by: sup39 <dev@sup39.dev>
2024-06-09 01:42:37 +09:00
naskya
9f16c00f0c
chore (backend-rs): use Arc for antenna cache 2024-06-09 01:13:05 +09:00
naskya
73461617ef
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 22:49:33 +09:00
naskya
00e9f0ad48
chore (backend-rs, minor): fix code style 2024-06-07 22:46:46 +09:00
naskya
b9f9e62079
chore (backend-rs): be more specific about error variants 2024-06-07 22:34:45 +09:00
naskya
0839fe27b2
refactor (backend-rs): save nodeinfo cache directly 2024-06-07 22:21:53 +09:00
naskya
74e3279361
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 16:12:06 +09:00
naskya
4a42579695
v20240607 2024-06-07 16:06:51 +09:00
naskya
6d237e98b8
chore: fix link 2024-06-07 14:02:16 +09:00
naskya
2c54bc3364
remove queries to scheduled_note table 2024-06-07 08:39:57 +09:00
naskya
16f26bc6d7
Merge branch 'develop' into iceshrimp_mastodon 2024-06-07 08:07:24 +09:00
naskya
d6bd3af8a9
Merge branch 'develop' into refactor/scheduled-posts 2024-06-07 07:11:46 +09:00
naskya
b79e15add5
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 17:18:01 +09:00
naskya
5ff6003c6e
fix (backend-rs): fix doctest 2024-06-06 17:17:51 +09:00
naskya
c92ef5796a
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 17:15:53 +09:00
naskya
7c32f682d4
chore: update auto-generated file 2024-06-06 17:10:41 +09:00
naskya
64088819be
chore (backend-rs): update build script 2024-06-06 17:10:41 +09:00
naskya
8fd3f82d0b
chore (backend-rs): update comment 2024-06-06 17:10:40 +09:00
naskya
b6c16b4e29
chore (backend-rs): fix doc link 2024-06-06 17:10:40 +09:00
naskya
308ecec341
chore: format 2024-06-06 17:10:40 +09:00
naskya
40e5bf45bd
chore (backend-rs): use async HTTP requests 2024-06-06 17:10:40 +09:00
naskya
7413866885
chore (backend-rs): change function names 2024-06-06 17:10:39 +09:00
naskya
4390dfcbfb
perf (backend): store antenna cache in memory 2024-06-06 17:10:39 +09:00
naskya
7e2493b257
refactor (backend): drop support for MK- environment variables 2024-06-06 17:10:39 +09:00
naskya
97765209a2
chore (backend-rs): organize imports 2024-06-06 17:10:39 +09:00
naskya
642c4cb2c7
refactor (backend-rs): remove strum derives 2024-06-06 17:10:39 +09:00
naskya
f479ffb0e5
chore (backend-rs): refactor storage_usage function 2024-06-06 17:10:38 +09:00
naskya
e9d31687f9
chore (backend-rs): remove unused derive 2024-06-06 17:10:38 +09:00
naskya
fc590c1492
chore (backend-rs): use ws or wss for WebSocket 2024-06-06 17:10:38 +09:00
naskya
b111e63953
chore (backend-rs): prefer unwrap_or_else 2024-06-06 17:10:35 +09:00
naskya
167d89e03e
Merge branch 'develop' into refactor/scheduled-posts 2024-06-06 09:55:57 +09:00
naskya
d0619a6066
fix: overlooked invalid push subscription branch
should have done in abc653eb21
2024-06-06 08:33:48 +09:00
naskya
abc653eb21
chore: unsubscribe invalid push subscriptions 2024-06-06 08:29:53 +09:00
naskya
370aad5982
chore: make the code a bit more readable 2024-06-06 08:01:02 +09:00
naskya
9d34117124
Merge branch 'develop' into iceshrimp_mastodon 2024-06-06 07:35:35 +09:00
naskya
95b860e820
chore (backend-rs): fetch_meta -> local_server_info 2024-06-06 07:30:13 +09:00
Eana Hufwe
7cf612f9f8 fix(backend-rs): update padding logic to accomodate non-ASCII payload 2024-06-05 20:30:41 +00:00
naskya
be894399a5
Merge branch 'develop' into iceshrimp_mastodon 2024-06-05 12:33:48 +09:00
naskya
28cfaad330
perf (backend): always use cache in fetch_meta 2024-06-05 12:30:05 +09:00
naskya
219131ef6f
chore (backend-rs): return None if the cached value is invalid 2024-06-05 08:36:39 +09:00
naskya
6207e4c014
chore: make subscription types enum 2024-06-05 07:14:13 +09:00
naskya
fedc51832a
Merge branch 'develop' into iceshrimp_mastodon 2024-06-05 05:25:08 +09:00
naskya
fe685c36b9
chore: format 2024-06-04 10:52:26 +09:00
naskya
6f6cf0cc88
chore (backend): show less unhelpful slow query warnings 2024-06-04 10:50:41 +09:00
naskya
e87dae896b
fix (backend-rs): use the exact same time for id and created_at 2024-06-03 08:23:58 +09:00
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
c7e1ea48a4
Merge branch 'develop' into iceshrimp_mastodon 2024-06-01 23:00:43 +09:00
naskya
8293ed8e87
chore (backend-rs): more documents on NodeInfo 2024-06-01 11:25:20 +09:00
naskya
ecefb20ba7
Merge branch 'develop' into iceshrimp_mastodon 2024-06-01 08:35:44 +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
7c95c65a7c
Merge branch 'develop' into iceshrimp_mastodon 2024-05-31 21:48:03 +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
3b42d25ee8
chore: DatabaseConnection -> DbConn 2024-05-31 06:19:14 +09:00
naskya
af2b19709e
chore: handle a bit more errors 2024-05-31 06:17:13 +09:00
naskya
76a0e5fa28
Merge branch 'develop' into iceshrimp_mastodon 2024-05-30 23:07:40 +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
6209fdd242
Merge branch 'develop' into iceshrimp_mastodon 2024-05-30 07:11:44 +09:00
naskya
890ca846d0
chore (backend-rs): documents, organize exports, typo fixes 2024-05-30 07:07:01 +09:00
naskya
8741bda5df chore (backend-rs): don't use unsafe unwrap() in examples 2024-05-29 18:30:10 +00:00
naskya
682bea134e chore (backend-rs): add comments 2024-05-29 18:29:39 +00:00
naskya
20607acc1b dev: update editorconfig 2024-05-29 18:29:29 +00:00
naskya
4624911df8 chore: regenerate auto-generated files 2024-05-29 18:29:29 +00:00
naskya
a0c31ddd47 chore (backend-rs): address cargo doc warning 2024-05-29 18:29:29 +00:00
naskya
575ccd0e29 test (backend-rs): add timestamp check 2024-05-29 18:29:29 +00:00
naskya
4ad09b5ae2 fix: Maser push notifications 2024-05-29 18:29:26 +00:00
naskya
cad3610d2e fix: feather push notifications 2024-05-29 18:29:26 +00:00
naskya
8fca35ca06 fix: Ice Cubes push notifications
Co-authored-by: Eana Hufwe <eana@1a23.com>
2024-05-29 18:29:26 +00:00
naskya
3a62097ec3 chore: concat two statements 2024-05-29 18:29:26 +00:00
naskya
6c449466a5 fix: do not unwrap() Option before checking that it holds a value 2024-05-29 18:29:26 +00:00
naskya
303060fe84 fix: missing imports 2024-05-29 18:29:26 +00:00
Eana Hufwe
a499fb1755 fix: missing var 2024-05-29 18:29:26 +00:00
Eana Hufwe
ba726f9abf fix: compatibility with Ice Cubes and Mammoth 2024-05-29 18:29:25 +00:00
Eana Hufwe
b6414dd104 fix: add space paddings to the end of JSON payload to prevent esm from padding null bytes 2024-05-29 18:29:22 +00:00
naskya
6db8ad14e2
Merge branch 'develop' into iceshrimp_mastodon 2024-05-29 23:44:12 +09:00
naskya
38c5b85220
fix: use only necessary fields 2024-05-29 23:42:05 +09:00
naskya
abaed389f9
chore: remove from/toMastodonId functions 2024-05-29 23:41:55 +09:00
naskya
fbe906fe11
refactor: use ok_or to return errors when Some is expected 2024-05-29 23:41:47 +09:00
naskya
1df3680842
chore: port sql-regex-escape to backend-rs 2024-05-29 23:41:39 +09:00
naskya
199065502b
chore: update auto-generated files 2024-05-29 23:40:56 +09:00
Laura Hausmann
f282549900
refactor: Iceshrimp’s Mastodon API implementation with original extensions
Co-authored-by: Eana Hufwe <eana@1a23.com>
Co-authored-by: AkiraFukushima <h3.poteto@gmail.com>
2024-05-29 23:39:22 +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