Commit Graph

205 Commits

Author SHA1 Message Date
TheArcaneBrony 6f1b95809a Temporary commit.
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-02-20 03:40:23 +01:00
TheArcaneBrony 506954f3df Add basic message interceptor framework
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-02-19 19:55:43 +01:00
Madeline a9e50cde7f Don't use relative path for db entities. Closes #937 2023-02-03 22:45:07 +11:00
Madeline 8c56c27d1c On db sync/first run, add all the current migrations to migrations table to prevent running them on restarts 2023-02-03 22:39:10 +11:00
Madeline 4abf9d9c68 remove MANAGE_GUILDS, EDIT_FLAGS, SELF_EDIT_FLAGS, MANAGE_GROUPS from default rights 2023-02-03 16:26:50 +11:00
Madeline 4c82fd1bb4 run add:license 2023-02-03 14:40:41 +11:00
Madeline 583b271ba2 Don't allow message types to be edited 2023-02-03 14:39:42 +11:00
Madeline 69c55884e5 Merge pull request from GHSA-hqqp-gpqw-9w5c 2023-02-02 22:24:56 +11:00
Madeline a03f7c8948 Merge pull request from GHSA-r7h4-76f7-6264
* Actually use maxUsername config value.

* Change maxUsername default to discord.com default
2023-02-02 22:15:03 +11:00
Madeline d8f32cb05a Use erlpack instead of @yukikaze-bot/erlpack (#968) 2023-02-01 13:00:04 +11:00
TheArcaneBrony a156c7bc62 Rename postgresql to postgres -> fix silently failing migrations
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-31 23:33:07 +01:00
TheArcaneBrony f7c0317c8d Hotfix postgres connection string to not silently fail migrations 2023-01-31 23:27:19 +01:00
TheArcaneBrony 9764881bf5 Fix missing capitalisation in database connected log 2023-01-31 23:15:10 +01:00
TheArcaneBrony 9c77af83b9 Add a tiny bit of extra logging to database connection 2023-01-31 23:13:23 +01:00
Madeline b8d58dba44 Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect. 2023-02-01 00:12:00 +11:00
Madeline 005aa8e52c Impl member lazy request (#970) 2023-01-30 19:57:00 +11:00
Madeline 4906d9a78a read-states/ack-bulk (#969) 2023-01-30 13:34:27 +11:00
Puyodead1 1e21802064 Implement WebAuthn (#967)
* implement webauthn

* code review

---------

Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-30 13:30:42 +11:00
Madeline 08560d8655 Use localhost:3001 as fallback when cdn endpoints are null rather than 3003 2023-01-26 10:18:16 +11:00
Madeline b82c6d672b Don't set default cdn endpoints. Null endpoints means to not update them in GLOBAL_ENV. TODO: Don't use private endpoint locations in global env if public is not set, as this limits infra config 2023-01-26 01:10:05 +11:00
Madeline de140eb7e8 Refactor config utils (#963) 2023-01-24 11:09:14 +11:00
Madeline 71082eb918 Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
2023-01-20 18:10:47 +11:00
Puyodead1 071cf6c5f2 fix: route file regex (#956) 2023-01-20 01:52:05 +11:00
ChrisChrome 9bcc09ac67 Apparently its still accepted, just depricated 2023-01-18 19:37:15 -07:00
ChrisChrome 3d7d3c1e8d It's seconds, not days 2023-01-18 19:33:30 -07:00
Chris Chrome 313ba7a27b Merge pull request #952 from fosscord/dev/endpoints-in-ping
Merge /dev/endpoints-in-ping to master
2023-01-18 12:14:05 -07:00
Madeline b58cea7c41 Script to add license preamble to each file. Also, does that. (#935)
* Add script to automatically add license to each file

* Add license preamble to each file.

* Fix existing preamble detection breaking due to line endings. Git :(

* Prevent license from being added to code with other licenses
2023-01-18 13:05:49 +11:00
Madeline c0b12bc166 Fix deleting an application if it has a bot 2023-01-17 00:01:14 +11:00
TheArcaneBrony 3bb002eb88 Add basic info in ping
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-14 19:55:19 +01:00
Erkin Alp Güney 27dbeba821 Add /users/:id/delete (#926) 2023-01-14 19:15:35 +11:00
Madeline a5bc0529ed Fix guild delete failing when template exists 2023-01-13 22:38:55 +11:00
Madeline 68886cc932 Fix setting user premium_type/etc (non-nullable) to null in db when null in config 2023-01-13 13:44:58 +11:00
TheArcaneBrony 1e1ba96a3c 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 91598123c9 fix rights lol 2023-01-11 20:56:11 +11:00
Madeline ba52570b44 If defaults_user_premium is false, don't give a user premium_since: new Date 2023-01-11 16:32:16 +11:00
Madeline efa4411f18 Add sentry close to sigterm handler 2023-01-10 18:31:36 +11:00
Madeline 6755f1392d Move sentry init to util. use sentry in each module, not just bundle 2023-01-10 13:20:37 +11:00
Madeline a3f2f997a3 Prettier 2023-01-05 17:16:55 +11:00
Madeline f67375bf37 Add migrations (#923)
* Fix typeorm migration cli and server migrations.
* Add `migrate-from-staging` script
2023-01-05 17:04:15 +11:00
Madeline 0fe03771ce Profile themes and pronouns 2022-12-31 17:51:57 +11:00
Madeline 4b518774b1 Allow Bearer tokens through, like Bot 2022-12-31 14:52:58 +11:00
Madeline c25a2e5c5b Move datasource to own file for typeorm cli 2022-12-27 15:23:56 +11:00
Madeline 91010235b9 OAuth2 authorize bot flow 2022-12-24 18:55:14 +11:00
Madeline ac8ac9ada0 Fix creating bot accounts 2022-12-24 16:28:00 +11:00
Madeline 19ad9479cc Use config for some default guild properties 2022-12-24 13:47:38 +11:00
Madeline 18c6d11fc1 Rename limits_rate_disabled -> limits_rate_enabled and remove limits_guilds_hideOfflineMember 2022-12-22 21:01:29 +11:00
Madeline 4591de5805 Allow BitField's to be passed as number strings. Pretty sure it fixes #722 2022-12-22 18:53:21 +11:00
Madeline b47b6de102 Fix redirect when test client disabled 2022-12-22 12:13:13 +11:00
Madeline 22fb62673a Disable test client by default 2022-12-21 19:52:08 +11:00
Madeline b9f171d940 Merge branch 'maddy/refactor' of github.com:fosscord/fosscord-server into maddy/refactor 2022-12-21 16:10:26 +11:00