Commit graph

2064 commits

Author SHA1 Message Date
naskya
5cbb172dbf
chore (backend): accept linter suggestions 2024-06-06 17:10:40 +09:00
naskya
308ecec341
chore: format 2024-06-06 17:10:40 +09:00
naskya
3cf1e306b1
fix (backend): update meta cache in admin/update-meta 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
fd563fc5f6
hotfix for type error 2024-06-06 12:49:14 +09:00
naskya
a9bec190de
chore (backend): promise handling 2024-06-06 10:15:25 +09:00
naskya
195701d297
fix (backend): fix condition 2024-06-06 10:08:34 +09:00
naskya
02101e04dc
fix (backend): scheduled reply/renote 2024-06-06 10:06:04 +09:00
naskya
167d89e03e
Merge branch 'develop' into refactor/scheduled-posts 2024-06-06 09:55:57 +09:00
naskya
5a8b2d439a Merge branch 'feat/qr_note_sharing' into 'develop'
feat: qr codes for note sharing

Co-authored-by: 老周部落 <laozhoubuluo@gmail.com>

Closes #10931

See merge request firefish/firefish!10927
2024-06-06 00:46:10 +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
a1373fd972 Merge branch 'apidoc-use-element' into 'develop'
DEV: Use Elements to render API Document

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

See merge request firefish/firefish!10891
2024-06-04 23:24:02 +00: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
9c7c00482e
style (backend): match log colors 2024-06-04 11:16:10 +09:00
naskya
6f6cf0cc88
chore (backend): show less unhelpful slow query warnings 2024-06-04 10:50:41 +09:00
naskya
ebcf75dcd2
fix (backend): show all tracing logs 2024-06-04 10:15:39 +09:00
Lhcfl
37998e8bc3 Ensure unique operationId 2024-06-02 23:54:50 +08:00
naskya
c0f6106633
chore: allow GET request for /api/latest-version 2024-06-02 08:55:17 +09:00
naskya
ff5bb2ed3d
fix (backend): don't use findOneBy to check existence 2024-06-02 07:28:37 +09:00
naskya
071ba83704
fix (backend): replace deprecated exist method 2024-06-02 07:23:07 +09:00
naskya
c64119108e
fix (backend): use the exact same time for id and createdAt 2024-06-02 07:11:39 +09:00
naskya
74cf09c5c8
chore: export searchNotes function 2024-05-31 22:21:54 +09:00
老周部落
ecc7ca1aa6
fix: questionable if statements in note import 2024-05-30 22:04:41 +08: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
db4e0e931b fix (backend): make sure to use the exact same time for id and createdAt 2024-05-29 18:29:48 +00:00
Eana Hufwe
e64cd1ea65 chore: code formatting 2024-05-29 18:29:29 +00:00
Eana Hufwe
1214d29302 fix: status.reblogged signifies if the status is reblogged by the logged in user, not for the current status 2024-05-29 18:29:27 +00:00
Eana Hufwe
b510ec2ef3 fix: index 2024-05-29 18:28:46 +00:00
Eana Hufwe
3d2f8dbfb8 fix: object typing 2024-05-29 18:28:46 +00:00
Eana Hufwe
c2fdc0bd51 fix: IceCubes wants an int for ID despite the docs says string 2024-05-29 18:28:45 +00:00
Eana Hufwe
ffa53c61fa fix: parsing payload when registering push notification subscriptions 2024-05-29 18:28:44 +00:00
Eana Hufwe
65ce56cc08 fix: parsing payload when registering push notification subscriptions 2024-05-29 18:28:43 +00:00
老周部落
78a18e9000
feat: qr codes for note sharing 2024-05-29 22:55:46 +08:00
Eana Hufwe
33b45d1d22
fix: do not make query if no notification type is requested 2024-05-29 23:46:06 +09:00
Eana Hufwe
440d961ab4
fix: multiple redirect uri support 2024-05-29 23:44:35 +09:00
naskya
605f8d5e29
fix: typo
ref: https://docs.joinmastodon.org/entities/V1_Instance/#video_frame_rate_limit
2024-05-29 23:42:21 +09:00
naskya
6f20b69021
fix: import .js 2024-05-29 23:42:12 +09:00
naskya
abaed389f9
chore: remove from/toMastodonId functions 2024-05-29 23:41:55 +09:00
naskya
1df3680842
chore: port sql-regex-escape to backend-rs 2024-05-29 23:41:39 +09:00
naskya
ee33337a3f
chore: distinguish between database columns and relations 2024-05-29 23:41:29 +09:00
naskya
e143f0d7ac
chore: prevent unexpected variable scope leaks 2024-05-29 23:41:21 +09:00
naskya
bedf4cb791
chore: import isQuote from backend-rs 2024-05-29 23:41:12 +09:00
naskya
c1c3d8a8e0
chore: format 2024-05-29 23:40:41 +09:00
naskya
bd351912ed
chore: use type imports 2024-05-29 23:40:31 +09:00
Laura Hausmann
3e878984bd
refactor: adding more fixes from Iceshrimp
Co-authored-by: CookiLover311 <jacoco@vivaldi.net>
2024-05-29 23:39:54 +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
1e3e44902e
fix: throw an error if scheduled date is past 2024-05-27 22:25:44 +09:00
naskya
465d3b2272
why did this happen 2024-05-27 22:15:51 +09:00
naskya
a0f65cc6bc
refactor: remove scheduled note entity from backend 2024-05-27 21:55:06 +09:00
naskya
9364f32bc2
chore: drop scheduled_note table 2024-05-27 21:00:10 +09:00
naskya
431a5d47cd
fix (backend): use correct Redis prefix (close #10940) 2024-05-23 21:39:50 +09:00
naskya
55ed733df8
chore (backend): remove '_enum' suffix from enum types 2024-05-23 20:49:49 +09:00
naskya
7e40424b89
meta: bump required Node.js version to v18.19.0
ref: https://github.com/sindresorhus/execa/releases/tag/v9.0.0
2024-05-23 20:49:46 +09:00
Lhcfl
fc8357302d fix: Scheduled post cannot send post with attachments 2024-05-22 14:49:22 +08:00
naskya
02361b6dc6
fix (backend): remove unused parameter from manifest 2024-05-21 09:59:55 +09:00
naskya
9955a62e6b
fix (backend): overlooked change 2024-05-20 20:21:44 +09:00
naskya
b87351673c
fix (backend): typo 2024-05-20 20:11:59 +09:00
naskya
cf0c7b4687
chore (backend): rename the job 2024-05-20 20:01:25 +09:00
naskya
9fd98cc5f7
fix (backend): fix imports 2024-05-19 20:11:21 +09:00
naskya
fdc46bcee7
chore: format 2024-05-19 19:56:51 +09:00
naskya
64d7aa40b1
chore (backend): use timestamptz 2024-05-19 19:56:29 +09:00
naskya
ba7fa4393a
chore (backend): ScheduledNoteCreation -> ScheduledNote 2024-05-19 19:55:20 +09:00
naskya
ec152499bf
Merge branch 'develop' into feat/schedule-create 2024-05-19 19:44:11 +09:00
naskya
8174d646f9
fix (backend): add back timezone 2024-05-19 19:15:58 +09:00
naskya
9dbf6d07c4
fix (backend): pug config loading 2024-05-19 19:11:13 +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
naskya
61562a0943
refactor (backend-rs): use async redis commands 2024-05-18 13:20:43 +09:00
naskya
4e50ffeb09
chore: format 2024-05-17 18:17:52 +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
452728b352
Merge branch 'develop' into feat/schedule-create 2024-05-16 17:32:42 +09:00
naskya
774c8213f2
fix (backend): correct relation 2024-05-16 17:26:31 +09:00
naskya
a9e927cef1
Merge branch 'develop' into feat/schedule-create 2024-05-16 17:21:34 +09:00
naskya
9298a6252d
Merge branch 'develop' into refactor/types 2024-05-16 16:45:03 +09:00
naskya
41b32c5535 refactor (backend): port push notification sender to backend-rs 2024-05-15 22:19:58 +00:00
naskya
4b96063c23
chore: format 2024-05-16 04:22:41 +09:00
naskya
0de54e02f8
chore (backend): use literals and consts 2024-05-16 04:22:23 +09:00
naskya
101e50926b
chore: remove import assertion 2024-05-16 04:12:10 +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
8f8d62aa58
chore (backend): organize imports 2024-05-11 04:52:59 +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
989e93f2a0
fix: migrate back from happy-dom to JSDOM (closes #10924 #10914 #10842)
this reverts commit 4565867b8b.
2024-05-08 01:52:15 +09:00
naskya
4104cbf5b5
Merge branch 'develop' into feat/schedule-create 2024-05-07 21:27:40 +09:00
naskya
02380eff4d
refactor (backend): remove redundancy 2024-05-07 21:20:03 +09:00
naskya
5daeaf1de2
chore (backend): wrap relations in TypeORM Relation<...> 2024-05-07 21:05:31 +09:00
naskya
3ceaf99df6
chore (backend): tweak migration queries 2024-05-07 21:04:11 +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
eana
e7c33835b2 Add server-side per-user UI language 2024-05-06 05:14:44 +00:00
naskya
dd74eabae1
refactor (backend): port nodeinfo fetcher to backend-rs 2024-05-06 08:12:21 +09:00
naskya
49825853c1
refactor (backend): port nodeinfo generator to backend-rs 2024-05-06 03:01:55 +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
Lhcfl
3061147bd3 feat: scheduled note creation 2024-05-03 21:42:40 +08:00
naskya
a8f659ab88
chore: format 2024-05-02 21:46:14 +09:00
naskya
64c07a2406
fix (backend): tell TypeORM that some columns are no longer indexed
should have done in caae8474a6
2024-05-02 21:45:58 +09:00
naskya
6e9ae06990 Merge branch 'fix/10918' into 'develop'
fix: escape ambiguous Mfm marks from html

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

Closes #10918

See merge request firefish/firefish!10786
2024-05-02 11:28:08 +00:00
naskya
caae8474a6
chore (backend): drop unused database indexes
Based on the PostgreSQL analitics on the following servers' database:

- dvd.chat
- iwshkey.com
- minazukey.uk
- post.naskya.net
- post.sup39.dev
- stelpolva.moe

Thank you all for your helps!
2024-05-02 19:31:53 +09:00
Lhcfl
a4a96f0026 fix: escape ambiguous Mfm marks from html 2024-05-01 11:47:14 +08:00
Laura Hausmann
e790d6be90
fix (backend): hard code the @context value to avoid possible security risks
Co-authored-by: naskya <m@naskya.net>
2024-04-30 05:34:39 +09:00
naskya
98cc23557f
chore (backend): remove unused value 2024-04-27 10:12:31 +09:00
naskya
e5bac649c8
refactor (backend): flatten a type 2024-04-27 10:05:48 +09:00
naskya
53dfec57a8
refactor (backend): remove misc/langmap.ts 2024-04-27 09:15:59 +09:00
naskya
1b143ebfaa
Merge branch 'develop' into refactor/types 2024-04-27 09:09:17 +09:00
naskya
38cd4bafde
refactor (backend): port publishGroupMessagingStream to backend-rs 2024-04-27 08:36:12 +09:00
naskya
aae505ad68
fix (backend): correctly fallback maxLogLevel to info 2024-04-27 05:48:56 +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
3190f66740
chore (backend): convert TypeORM's simple-array into normal array 2024-04-26 12:03:12 +09:00
Lhcfl
99f30ba01a change firefish-js to esm 2024-04-26 10:22:51 +08: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
0512dca83c
fix (backend): import .js 2024-04-26 03:22:07 +09:00
naskya
320f933e9d
chore (backend): to be on the safe side 2024-04-26 01:04:40 +09:00
Lhcfl
fec1a800b6 Merge branch 'develop' of https://firefish.dev/firefish/firefish into refactor/types 2024-04-25 21:13:55 +08:00
naskya
0b7385e16a
chore: format 2024-04-25 19:15:12 +09:00
naskya
b12d7e4c63
refactor (backend): port emoji-meta to backend-rs 2024-04-25 19:06:16 +09:00
naskya
b9c3dfbd3d
refactor? (backend): move consts to backend-rs 2024-04-25 14:50:04 +09:00
naskya
d82ad33730 Merge branch 'fix/import-custom-emojis' into 'develop'
fix: #10451 Emoji pack imports randomly stop processing files

Co-authored-by: Linca <lhcfllinca@gmail.com>
Co-authored-by: Lhcfl <Lhcfl@outlook.com>

Closes #10451

See merge request firefish/firefish!10757
2024-04-25 03:56:09 +00:00
naskya
cdea55ab25
chore (backend): revise apLogger log levels (#10907) 2024-04-25 11:42:16 +09:00
naskya
76a45fa6ac
chore (backend): move download logs to debug 2024-04-25 11:08:45 +09:00
naskya
d086b7b993
chore (backend): failed deliver logs should be info 2024-04-25 10:58:31 +09:00
naskya
aa2b35a554
chore (backend): proper streaming logs 2024-04-25 10:53:27 +09:00
naskya
40a4109c76
chore (backend): add FIXME comment to questionable if statements 2024-04-25 09:36:22 +09:00
naskya
24e6e31b2b
fix (backend): update note_file table by post imports 2024-04-25 08:22:30 +09:00
naskya
7441f0861a
fix (backend): fix order of logger initialization 2024-04-25 08:15:40 +09:00
naskya
a2316b7caf
chore (backend): move SQL query logs to trace level (#10907) 2024-04-25 08:05:45 +09:00
naskya
322b2392de
chore (backend): revise queue logs (#10907) 2024-04-25 08:03:53 +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
879d499486
refactor (backend-rs): never throw an error on ID generation 2024-04-24 07:37:16 +09:00
naskya
9db729d734
refactor (backend-rs): separate gen_id and gen_id_at 2024-04-24 07:02:06 +09:00
naskya
a2958f6da8
refactor (backend): port daemons/janitor.ts to backend-rs 2024-04-24 06:39:40 +09:00
naskya
9ef5350a00
chore (backend): remove promisify 2024-04-24 05:19:03 +09:00
naskya
e8b39be387
chore (backend): remove unused function 2024-04-24 05:01:35 +09:00
naskya
88280e3bfd
refactor (backend): port publishMessagingStream to backend-rs 2024-04-24 04:13:29 +09:00
Lhcfl
267670af96 move schema & langmap from backend to firefish-js 2024-04-24 02:00:34 +08:00
Lhcfl
ea60895bf8 Merge branch 'develop' of https://firefish.dev/firefish/firefish into refactor/types 2024-04-24 00:13:07 +08:00
naskya
cac438b965 Merge branch 'fix/use-pagination-in-note' into 'develop'
fix: use pagination in note

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

Closes #10906

See merge request firefish/firefish!10754
2024-04-23 14:59:40 +00:00
naskya
50b7c71ed6
chore (backend): use type import 2024-04-23 23:56:34 +09:00
Lhcfl
62f5c84ca6 fix types 2024-04-23 21:30:55 +08:00
Lhcfl
4bb97f2a3c Merge branch 'develop' of https://firefish.dev/firefish/firefish into fix/use-pagination-in-note 2024-04-23 10:45:50 +08:00
Linca
a52340fa53 fix: disable extensions that cannot be used as emojis 2024-04-22 00:31:38 +00:00