423 Commits

Author SHA1 Message Date
TheArcaneBrony
6122374e4d Dev/post refactor fixes (#927)
* Re-introduce outgoing message logging

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Websocket dumping

* Sentry user count on API

* Generate session ID upon opening websocket, fix gateway dumps

* Async file io in src/gateway/events/Message.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Async file io in src/util/util/Config.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Make pre-commit hook executable

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Fixed sync file io in src/util/util/Config.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Fixed missing await call in src/util/util/AutoUpdate.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Add comment to src/gateway/events/Connection.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Clean up gateway dumping code

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-12 23:46:36 +11:00
Madeline
68db12378d fix rights lol 2023-01-11 20:56:11 +11:00
Madeline
b0e2b450af If defaults_user_premium is false, don't give a user premium_since: new Date 2023-01-11 16:32:16 +11:00
Madeline
8a31d66742 Add sentry close to sigterm handler 2023-01-10 18:31:36 +11:00
Madeline
2f065e6b37 Move sentry init to util. use sentry in each module, not just bundle 2023-01-10 13:20:37 +11:00
Madeline
df449169bd Prettier 2023-01-05 17:16:55 +11:00
Madeline
e42eaeee8d Add migrations (#923)
* Fix typeorm migration cli and server migrations.
* Add `migrate-from-staging` script
2023-01-05 17:04:15 +11:00
Madeline
7a725bab50 Profile themes and pronouns 2022-12-31 17:51:57 +11:00
Madeline
bc086a070c Allow Bearer tokens through, like Bot 2022-12-31 14:52:58 +11:00
Madeline
8aa355dee7 Move datasource to own file for typeorm cli 2022-12-27 15:23:56 +11:00
Madeline
a02f929d34 OAuth2 authorize bot flow 2022-12-24 18:55:14 +11:00
Madeline
35938556fe Fix creating bot accounts 2022-12-24 16:28:00 +11:00
Madeline
150f3dbf43 Use config for some default guild properties 2022-12-24 13:47:38 +11:00
Madeline
ec1c340369 Rename limits_rate_disabled -> limits_rate_enabled and remove limits_guilds_hideOfflineMember 2022-12-22 21:01:29 +11:00
Madeline
bf5f936aec Allow BitField's to be passed as number strings. Pretty sure it fixes #722 2022-12-22 18:53:21 +11:00
Madeline
9b8f26c512 Fix redirect when test client disabled 2022-12-22 12:13:13 +11:00
Madeline
92b1c5b800 Disable test client by default 2022-12-21 19:52:08 +11:00
Madeline
fe4db63ab8 Merge branch 'maddy/refactor' of github.com:fosscord/fosscord-server into maddy/refactor 2022-12-21 16:10:26 +11:00
Madeline
92227cdf18 Set default cdn endpoints so that local testing works 2022-12-21 15:37:16 +11:00
Puyodead1
8a28dd4675 Client: update to canary 165341 2022-12-20 23:25:20 -05:00
Madeline
2d67355a52 Fix guild features being undefined if not using defaultFeatures 2022-12-21 14:55:23 +11:00
TheArcaneBrony
bdda215005 Message rate limiting 2022-12-19 22:17:06 +11:00
Madeline
ddd3c86043 Registration tokens 2022-12-19 22:04:52 +11:00
TheArcaneBrony
3227933f28 Add register ratelimit 2022-12-19 20:57:43 +11:00
Madeline
f5671775ef comments 2022-12-19 20:50:36 +11:00
Erkin Alp Güney
8eff4de19d flags related rights and stats api 2022-12-19 20:49:38 +11:00
Madeline
f69aaa223e Fix config loading 2022-12-19 20:39:43 +11:00
Puyodead1
b84aa73852 implement guild profiles and fix user profiles 2022-12-19 20:37:59 +11:00
TheArcaneBrony
5e289fea77 Configurable MFA backup token length 2022-12-19 19:52:23 +11:00
TheArcaneBrony
da2fe81a8b case insensitive header for rate limits, fix rate limit default settings
Also disabled rate limit bypass right as it doesn't work...
2022-12-19 19:51:14 +11:00
Madeline
ac74a2cec4 Create webhooks 2022-12-19 19:31:23 +11:00
Madeline
295ef797fb Don't override existing config values 2022-12-19 18:35:36 +11:00
TheArcaneBrony
803ab38fad Move UserSettings to own entity 2022-12-19 17:52:44 +11:00
Madeline
d407d8ebe7 Add additional config 2022-12-19 16:51:24 +11:00
TheArcaneBrony
bc669ea9e1 Make ConfigValue a directory, move defaults to those classes instead of a separate object 2022-12-19 16:14:21 +11:00
Erkin Alp Güney
94b07e5efb removed char joiners as they are actually useful, added page break 2022-12-19 16:01:30 +11:00
Erkin Alp Güney
db4ed3bb6d make it configurable by guild feature flag 2022-12-19 15:59:58 +11:00
TheArcaneBrony
655ea00ff4 Make fosscord read config from json if CONFIG_PATH is set 2022-12-19 00:01:33 +11:00
TheArcaneBrony
5e4bbc2e83 Do the funny thing (make user->invite cascade delet) 2022-12-18 23:58:17 +11:00
ChrisChrome
ad5248ff97 Made nitro stuff make some sense 2022-12-18 23:54:48 +11:00
TheArcaneBrony
39f4aa6b70 Make teams nullable 2022-12-18 23:48:17 +11:00
Madeline
b74453d802 Refactor applications 2022-12-18 23:45:29 +11:00
ChrisChrome
245127f651 Add basic developer panel functionality - doesn't work yet
>
>
> Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2022-12-18 22:40:25 +11:00
Madeline
32e9d1828c Move to migrations. Use npm run generate:db for first database generation. 2022-12-18 22:14:12 +11:00
Puyodead1
1f72d884b2 fix: not being able to enable community 2022-12-18 16:31:03 +11:00
Madeline
1e2e82d975 Remove discord login config 2022-12-17 19:43:18 +11:00
Madeline
f59ec466de comments and such 2022-12-17 19:00:40 +11:00
Madeline
1148eaa6a2 user validation stuff 2022-12-17 18:50:27 +11:00
Madeline
444e815690 Remove bad banned words implementation 2022-12-17 18:45:42 +11:00
Madeline
eafa93b035 Remove use of PRODUCTION env var 2022-12-17 17:29:42 +11:00