naskya
35f30d9895
chore (backend-rs): make internal functions/modules private
2024-05-24 22:18:32 +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
f1e3395783
fix (backend-rs): active users count in nodeinfo ( close #10935 )
2024-05-21 16:12:07 +09:00
naskya
84c374da20
chore (backend-rs): cleanup
2024-05-20 19:23:54 +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
abc9d58f7c
refactor (backend-rs): use bb8 connection pool for Redis
2024-05-18 13:20:47 +09:00
naskya
61562a0943
refactor (backend-rs): use async redis commands
2024-05-18 13:20:43 +09:00
naskya
2fdd165144
chore (backend-rs): add TODO comment
2024-05-17 18:12:27 +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
41b32c5535
refactor (backend): port push notification sender to backend-rs
2024-05-15 22:19:58 +00: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
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
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
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
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
naskya
1cfe3bfb73
refactor (backend): port publishChannelStream to backend-rs
2024-04-26 06:16:51 +09:00
naskya
79ab7bf787
refactor (backend): port publishAdminStream to backend-rs
2024-04-26 05:44:37 +09:00
naskya
92b1f5cb5f
refactor (minor, backend-rs): rearrange conditions
2024-04-25 10:00:58 +09:00
naskya
eac0c1c47c
refactor (backend): revise log levels
...
* Add logging in backend-rs
* Change log levels to 'error', 'warning', 'info', 'debug', 'trace'
* Add `maxLogLevel` config and deprecate `logLevels`
* Move SQL queries to 'trace' level
2024-04-25 02:22:49 +09:00
naskya
109884f6d8
refactor (backend): port note watch/unwatch to backend-rs
2024-04-24 13:23:27 +09:00
naskya
88280e3bfd
refactor (backend): port publishMessagingStream to backend-rs
2024-04-24 04:13:29 +09:00
naskya
9eccdba075
chore (backend-rs): move add_note_to_antenna to misc
2024-04-24 00:23:13 +09:00
naskya
b4ae877462
chore: format
2024-04-22 01:54:44 +09:00
naskya
2a30b4a536
Revert "refactor (backend): it turns out that sending the entire note object was redundant"
...
This reverts commit 3b65ebcb3e
.
2024-04-22 01:47:56 +09:00
naskya
3039458c4c
chore (backend-rs): config::server::CONFIG -> config::CONFIG
2024-04-22 00:36:06 +09:00
naskya
574d3b3fe5
chore (backend-rs): in the current implementation we need to call to_string() anyway
...
There's room for refactoring
2024-04-22 00:30:59 +09:00
naskya
137d0fe3e5
chore (backend-rs): make variable names clearer
2024-04-22 00:29:37 +09:00
naskya
5c6f1c818a
chore (backend-rs): clean redundant match expression
2024-04-22 00:21:10 +09:00
naskya
2d8f4b945f
chore (backend-rs): remove unneeded serialize derivation for now
2024-04-22 00:17:33 +09:00
naskya
77e6479a67
chore (backend-rs): separate one-to-one/group chat stream types
2024-04-22 00:14:19 +09:00
naskya
ec940bb068
chore (backend-rs): publish -> publish_to_stream
2024-04-21 22:43:09 +09:00