Commit Graph
100 Commits
Author SHA1 Message Date
Madeline 1234d0c95b Merge pull request #997 from Puyodead1/dev/default-group-dm-avatars
Add default group dm icons
2023-03-16 15:50:08 +11:00
Madeline d76568bd29 Merge pull request #996 from Puyodead1/patch/rename-default-avatars
Rename default avatar files
2023-03-16 15:49:48 +11:00
Madeline 4d06b86d7b Fix UserSettings relation being in select rather than relations 2023-03-16 11:31:24 +11:00
Madeline bd5f750024 Remove client_test folder 2023-03-02 10:56:48 +11:00
Madeline 7cca31e68e Remove Discord widget banners 2023-03-02 10:56:15 +11:00
Madeline b9ffef8753 Remove test client and client patcher 2023-03-01 18:45:58 +11:00
Madeline 358494b844 Generate openapi 2023-02-26 14:20:01 +11:00
Madeline deb0da524e Rename password_reset config to passwordReset as it messes with config key generation 2023-02-25 20:31:10 +11:00
Madeline 048459b75f Merge branch 'master' of github.com:fosscord/fosscord-server 2023-02-24 23:49:07 +11:00
Madeline 515a1a5efd Merge pull request #985 from Puyodead1/fix/email
fix a few issues with emails
2023-02-24 23:48:57 +11:00
Madeline 51fe1b8955 send required_action in gateway for when email verification is required 2023-02-24 23:46:52 +11:00
Madeline f507e15326 Merge pull request #984 from fosscord/dependabot/npm_and_yarn/http-cache-semantics-4.1.1
Bump http-cache-semantics from 4.1.0 to 4.1.1
2023-02-24 23:21:16 +11:00
Madeline 224e2c8374 Merge pull request #965 from Puyodead1/dev/mail
Email Support
2023-02-24 23:17:36 +11:00
Madeline 2cddd7a8de Send different app for /verify 2023-02-23 21:35:50 -05:00
Madeline eee98516dd Fix gateway encoding Date objects as {} when using erlpack. Fixes NaN/NaN/NaN timestamps in desktop client 2023-02-21 12:01:49 +11:00
Madeline 5f553cc614 Close #954 2023-02-21 11:35:06 +11:00
Madeline 4db83ee531 Fix channel mentions #981 2023-02-20 15:12:23 +11:00
Madeline 3dae9d4e59 Implement default avatars #979 2023-02-18 12:57:06 +11:00
Madeline 2b627ab4a4 Update default avatar colour scheme and fix ordering 2023-02-18 12:52:32 +11:00
Madeline c59af81563 Fix a bug prevent connections using erlpack (#977) 2023-02-16 19:31:36 +11:00
Madeline cc50ebf47b Fix being unable to unset nicknames
Remove unwanted guild profile handler in cdn
Fix rights check for bio/avatars of your own user
2023-02-05 12:35:27 +11:00
Madeline e7e3c67a77 Don't use relative path for db entities. Closes #937 2023-02-03 22:45:07 +11:00
Madeline 6d8e6eca9d 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 d899942b1a Merge branch 'master' of github.com:fosscord/fosscord-server 2023-02-03 16:28:12 +11:00
Madeline 9aa31d24ab remove MANAGE_GUILDS, EDIT_FLAGS, SELF_EDIT_FLAGS, MANAGE_GROUPS from default rights 2023-02-03 16:26:50 +11:00
Madeline 74570994c8 run add:license 2023-02-03 14:40:41 +11:00
Madeline 16a5cbac87 Don't allow message types to be edited 2023-02-03 14:39:42 +11:00
Madeline 6e04c92f07 Merge pull request from GHSA-9qvc-84ch-5p2x
* Check permissions and rights

* Prevent editing message type unless MANAGE_MESSAGES right. Also don't send sensitive data in patch response.
2023-02-02 22:26:22 +11:00
Madeline 067d2d8be8 Merge pull request from GHSA-hqqp-gpqw-9w5c 2023-02-02 22:24:56 +11:00
Madeline cf04de4add Merge pull request from GHSA-9q7f-pv47-cxp9 2023-02-02 22:22:30 +11:00
Madeline af6b5a6594 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 da20866967 Use erlpack instead of @yukikaze-bot/erlpack (#968) 2023-02-01 13:00:04 +11:00
Madeline 72c0319a9f use print instead of console.log in client cache so it doesn't output weirdness 2023-02-01 12:40:38 +11:00
Madeline 63b4a8997f 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 ae8f4d6752 check pw and other auth before letting users undisable 2023-01-31 15:13:19 +11:00
Madeline d4d1ab181e subscribe clients to member events when they lazy request members 2023-01-30 20:23:35 +11:00
Madeline ac51849f28 question mark. 2023-01-30 20:05:07 +11:00
Madeline 1c4cb721be Impl member lazy request (#970) 2023-01-30 19:57:00 +11:00
Madeline 71258f6487 read-states/ack-bulk (#969) 2023-01-30 13:34:27 +11:00
Madeline e98cdfbce0 Merge branch 'master' of github.com:fosscord/fosscord-server 2023-01-26 14:30:34 +11:00
Madeline ac7a178f88 Fix SIGTERM handler not disconnecting gateway clients and leaving timeouts active 2023-01-26 14:29:33 +11:00
Madeline 8384a2c539 also don't use 3002 as default when gateway endpoints are null 2023-01-26 10:21:13 +11:00
Madeline 1886d53943 Use localhost:3001 as fallback when cdn endpoints are null rather than 3003 2023-01-26 10:18:16 +11:00
Madeline 1dcaa9f5f9 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 e296598e1c Don't try to cache files like /assets/;var u,p={26700:0};l.f 2023-01-24 13:28:24 +11:00
Madeline 363541c8e7 Update client cacher to allow numbers in extensions ( for woff2 ) 2023-01-24 11:42:17 +11:00
Madeline 58b7a3c5f4 Update lintstagedrc to run on js files as well 2023-01-24 11:42:03 +11:00
Madeline 85c880b230 Refactor config utils (#963) 2023-01-24 11:09:14 +11:00
Madeline 4df7bbcfe5 Rewrite client cacher (#962) 2023-01-22 13:41:31 +11:00
Madeline 084dc0be08 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
Madeline 683cd108e8 npm run generate:client downloads more assets now (Thanks Rory!). Also ONLY_CACHE_JS env var (#948) 2023-01-18 23:15:00 +11:00
Madeline 1a0cbcb1d4 Merge branch 'master' of github.com:fosscord/fosscord-server 2023-01-18 20:17:36 +11:00
Madeline 1ab279e2ef Don't fetch the emoji owner in identify, as this causes mass-disconnects with large emoji counts.
TODO: Remove some additional emoji props from being sent (user_id for example)
2023-01-18 20:16:49 +11:00
Madeline 0e7f127ece 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 0af3da6db7 Fix deleting an application if it has a bot 2023-01-17 00:01:14 +11:00
Madeline 0b89db8031 Merge pull request #934 from fosscord/master
Merge master into dev/endpoints-in-ping
2023-01-16 17:00:32 +11:00
Madeline 5771247645 Return embed proxy url even if imagor not set up. Also make warning nicer 2023-01-16 14:20:17 +11:00
Madeline de3909f646 Update dead lines 2023-01-16 00:03:51 +11:00
Madeline f971ca6e71 Merge branch 'master' of github.com:fosscord/fosscord-server 2023-01-15 17:36:40 +11:00
Madeline e0aae75757 Window name patch + fix overlapping text in client patcher 2023-01-15 17:35:54 +11:00
Madeline dda70a66c9 Add an error log if embed handler fails, in addition to the existing sentry log 2023-01-15 16:21:46 +11:00
Madeline c93f27f514 Update openapi 2023-01-14 19:23:45 +11:00
Madeline 7682772992 Merge pull request #929 from fosscord/dev/fix-client-script
Fix console fuckery to allow running in a headless terminal, and to fix flickering of output.
2023-01-13 23:15:46 +11:00
Madeline 39f2c0dbe3 Merge pull request #928 from fosscord/fix/guildtemplates
Fix guild delete failing when template exists
2023-01-13 22:46:05 +11:00
Madeline 43a0260cd8 Fix guild delete failing when template exists 2023-01-13 22:38:55 +11:00
Madeline f544c6890c Fix dumping incoming messages 2023-01-13 13:49:58 +11:00
Madeline a69c047854 Fix setting user premium_type/etc (non-nullable) to null in db when null in config 2023-01-13 13:44:58 +11:00
Madeline 3bbf997295 Dont send sessions replace or presence update for unidentified users 2023-01-13 13:44:19 +11:00
Madeline da9ce34933 Temp fix for DMs 2023-01-12 00:32:24 +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 7fc3634211 https://discord.com/channels/806142446094385153/898197424340860928/1062404340427534446 2023-01-11 14:32:30 +11:00
Madeline 8a31d66742 Add sentry close to sigterm handler 2023-01-10 18:31:36 +11:00
Madeline d151283b08 Add back include_url param to reg tokens 2023-01-10 18:08:31 +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 9efac4ad16 Add error handler for individual gateway sockets 2023-01-10 12:54:03 +11:00
Madeline 98d318fd88 add back openapi generation. todo: find way to keep route text descriptions in code, and find way to get usages of right/permission .hasThrow 2023-01-06 19:30:03 +11:00
Madeline 3c7b5f2656 Don't allow BaseClass props through schema 2023-01-06 18:07:14 +11:00
Madeline 1149c12df1 Prettier precommit hook 2023-01-05 18:56:39 +11:00
Madeline 9cc9df985c Don't send private user data in ready event 2023-01-05 17:42:36 +11:00
Madeline e54912a726 migration stuff again 2023-01-05 17:30:50 +11:00
Madeline df449169bd Prettier 2023-01-05 17:16:55 +11:00
Madeline a665a39523 channel flags whoops 2023-01-05 17:10:13 +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 5ef4b80fc5 Merge pull request #922 from MaddyUnderStars/maddy/bodyParserPatch
Patch body-parser to use json-bigint, like gateway
2023-01-02 20:37:25 +11:00
Madeline 7453dd0119 Use adjusted email in /auth/login 2023-01-02 13:18:07 +11:00
Madeline ec1af70ae5 Only send public user details in GUILD_MEMBER_LIST_UPDATE 2023-01-02 13:16:16 +11:00
Madeline 1bee8dc48f Revert "Don't let users undisable their accounts"
This reverts commit cd84412c92.
2023-01-01 14:20:41 +11:00
Madeline cd84412c92 Don't let users undisable their accounts 2023-01-01 12:59:45 +11:00
Madeline 7a725bab50 Profile themes and pronouns 2022-12-31 17:51:57 +11:00
Madeline 13453129e7 Merge branch 'maddy/refactor' into maddy/bodyParserPatch 2022-12-31 14:53:56 +11:00
Madeline bc086a070c Allow Bearer tokens through, like Bot 2022-12-31 14:52:58 +11:00
Madeline 0a09abbbfa Add WS_LOGEVENTS and WS_VERBOSE env vars 2022-12-31 12:00:00 +11:00
Madeline 0826d9125a Update build workflow to use v3 checkout and setup-node 2022-12-30 23:28:45 +11:00
Madeline 402f358751 Patch body-parser to use json-bigint 2022-12-30 23:19:05 +11:00
Madeline a1c07173bb Fix new roles having duplicate positions 2022-12-30 18:07:56 +11:00
Madeline 6b8c0d6e85 Fix npm ci!!! 2022-12-27 18:50:33 +11:00
Madeline d34177160a Update build workflow to use node 18, update lock file to v3 2022-12-27 18:25:11 +11:00
Madeline 8aa355dee7 Move datasource to own file for typeorm cli 2022-12-27 15:23:56 +11:00
Madeline a5b337b99a Add GH workflow for build 2022-12-27 13:32:44 +11:00