summary refs log tree commit diff
path: root/src/util (follow)
Commit message (Expand)AuthorAgeFilesLines
* License informationMadeline2023-04-0212-0/+216
* Less spammy user connection logsMadeline2023-04-022-11/+13
* Update connection metadata visibilityMadeline2023-04-021-0/+1
* Merge branch 'master' into refactor/dev/connectionsMadeline2023-04-02213-442/+655
|\
| * Remove ALL fosscord mentionsMadeline2023-03-3126-37/+36
| * Revert "Merge pull request #1008 from spacebarchat/dev/samuel"Madeline2023-03-3142-482/+106
| * fix: disable cache if multi threadedSamuel2023-03-301-2/+4
| * Merge pull request #1008 from spacebarchat/dev/samuelSamuel (Flam3rboy)2023-03-3042-106/+480
| |\
| | * feat: add DB_LOGGING env dev/samuelSamuel2023-03-181-1/+1
| | * fix: local cacheSamuel2023-03-181-1/+4
| | * build: remove sqlite3 in favor of better-sqlite3Samuel2023-03-181-1/+1
| | * build: remove sqlite3 in favor of better-sqlite3Samuel2023-03-181-10/+3
| | * fix: use entity.save() instead of insert (needed for caching)Samuel2023-03-181-2/+2
| | * fix: missing id in select querySamuel2023-03-181-1/+1
| | * feat: Database Query CacheSamuel2023-03-1838-124/+442
| | * wip: cacheSamuel2023-03-172-1/+42
| | * perf: optimize getPermission()Samuel2023-03-171-15/+18
| | * feat: better-sqlite3 supportSamuel2023-03-171-2/+17
| | * perf: cache jwt secret as keySamuel2023-03-171-1/+2
| | * fix: types when using yarnSamuel2023-03-172-2/+2
| * | SPACEBARMadeline2023-03-31212-212/+212
| * | SPACEBARMadeline2023-03-31212-202/+382
| * | Work towards fixing openapi specMadeline2023-03-246-1/+35
| |/
* | prettierPuyodead12023-03-181-1/+1
* | fix a few linting errorsPuyodead12023-03-182-4/+7
* | Move redirect uri generation to getRedirectUri function of Connection class.Madeline2023-03-182-2/+12
* | Add Twitch, error handling, revokation changes, etcPuyodead12023-03-187-5/+18
* | Refreshable connections, refactoring, access-token endpointPuyodead12023-03-189-13/+83
* | Don't try to upload entire config for each connection loadedMadeline2023-03-181-1/+2
* | WIP Discord connectionMadeline2023-03-181-1/+1
* | Fix ConnectionLoader from throwing when uploading default config keysMadeline2023-03-181-10/+8
* | Follow Discord docs for `visibility` and `metadata_visibility` fields in Conn...Madeline2023-03-181-2/+2
* | entities/ConnectionUpdateSchema -> schemas/ConnectionUpdateSchemaMadeline2023-03-183-1/+1
* | `handleCallback` returns connection if created for `USER_CONNECTIONS_UPDATE`Madeline2023-03-181-3/+4
* | implement PATCH connectionPuyodead12023-03-185-4/+11
* | adding connection now worksPuyodead12023-03-188-27/+45
* | add connectionsPuyodead12023-03-1813-4/+313
|/
* Remove test client and client patcherMadeline2023-03-013-27/+0
* Rename password_reset config to passwordReset as it messes with config key ge...Madeline2023-02-251-1/+1
* fix a few issues with emailsPuyodead12023-02-241-2/+9
* move transporters to their own filesPuyodead12023-02-247-147/+165
* simplify replacer functionPuyodead12023-02-241-34/+20
* first batch of requested changesPuyodead12023-02-241-5/+6
* implement password resetPuyodead12023-02-249-32/+174
* add SendGrid transportPuyodead12023-02-243-1/+56
* don't print anything if email send is successfulPuyodead12023-02-241-19/+15
* error if correspondence email is not setPuyodead12023-02-231-0/+5
* fix for when secure is set to falsePuyodead12023-02-231-1/+1
* add right to resend verification emailsPuyodead12023-02-232-1/+2
* fix: email verificationPuyodead12023-02-231-0/+27
* config: require account verificationPuyodead12023-02-231-0/+1
* fix linting errorsPuyodead12023-02-233-53/+15
* Add mailjet transportPuyodead12023-02-234-55/+133
* Add Mailgun transportPuyodead12023-02-235-10/+121
* rename SMTPConfigurations to EmailConfigurationPuyodead12023-02-235-7/+8
* Fix template rendering and use verify email templatePuyodead12023-02-232-11/+112
* Email verification worksPuyodead12023-02-234-19/+58
* add missing copyright headersPuyodead12023-02-232-0/+36
* send email verificationPuyodead12023-02-233-3/+52
* Start implementing smtpPuyodead12023-02-234-1/+42
* Fix gateway encoding Date objects as {} when using erlpack. Fixes NaN/NaN/NaN...Madeline2023-02-212-0/+16
* Don't use relative path for db entities. Closes #937Madeline2023-02-031-1/+1
* On db sync/first run, add all the current migrations to migrations table to p...Madeline2023-02-032-2/+14
* remove MANAGE_GUILDS, EDIT_FLAGS, SELF_EDIT_FLAGS, MANAGE_GROUPS from default...Madeline2023-02-031-1/+1
* run add:licenseMadeline2023-02-034-0/+72
* Don't allow message types to be editedMadeline2023-02-032-0/+22
* Merge pull request from GHSA-hqqp-gpqw-9w5cMadeline2023-02-023-16/+13
* Merge pull request from GHSA-r7h4-76f7-6264Madeline2023-02-021-1/+1
* Use erlpack instead of @yukikaze-bot/erlpack (#968)Madeline2023-02-012-0/+13
* Rename postgresql to postgres -> fix silently failing migrationsTheArcaneBrony2023-01-313-2/+4
* Hotfix postgres connection string to not silently fail migrationsTheArcaneBrony2023-01-311-1/+1
* Fix missing capitalisation in database connected logTheArcaneBrony2023-01-311-1/+1
* Add a tiny bit of extra logging to database connectionTheArcaneBrony2023-01-311-4/+3
* Fix missing props in welcome message creation, which causes every client who ...Madeline2023-02-011-1/+5
* Impl member lazy request (#970)Madeline2023-01-301-2/+2
* read-states/ack-bulk (#969)Madeline2023-01-302-0/+24
* Implement WebAuthn (#967)Puyodead12023-01-3010-39/+274
* Use localhost:3001 as fallback when cdn endpoints are null rather than 3003Madeline2023-01-261-2/+2
* Don't set default cdn endpoints. Null endpoints means to not update them in G...Madeline2023-01-261-2/+2
* Refactor config utils (#963)Madeline2023-01-241-43/+38
* Add ESLint (#941)Madeline2023-01-2043-224/+208
* fix: route file regex (#956)Puyodead12023-01-201-1/+1
* Apparently its still accepted, just depricatedChrisChrome2023-01-181-0/+1
* It's seconds, not daysChrisChrome2023-01-181-1/+1
* Merge pull request #952 from fosscord/dev/endpoints-in-pingChris Chrome2023-01-181-0/+1
|\
| * Add basic info in pingTheArcaneBrony2023-01-141-0/+1
* | Script to add license preamble to each file. Also, does that. (#935)Madeline2023-01-18190-1/+3353
* | Fix deleting an application if it has a botMadeline2023-01-171-2/+2
|/
* Add /users/:id/delete (#926)Erkin Alp Güney2023-01-143-0/+14
* Fix guild delete failing when template existsMadeline2023-01-134-1/+70
* Fix setting user premium_type/etc (non-nullable) to null in db when null in c...Madeline2023-01-131-3/+3
* Dev/post refactor fixes (#927)TheArcaneBrony2023-01-122-5/+9
* fix rights lolMadeline2023-01-111-1/+2
* If defaults_user_premium is false, don't give a user `premium_since: new Date`Madeline2023-01-111-9/+8
* Add sentry close to sigterm handlerMadeline2023-01-101-0/+4
* Move sentry init to util. use sentry in each module, not just bundleMadeline2023-01-102-0/+103
* PrettierMadeline2023-01-0575-374/+409
* Add migrations (#923)Madeline2023-01-055-59/+71
* Profile themes and pronounsMadeline2022-12-315-3/+30
* Allow Bearer tokens through, like BotMadeline2022-12-311-0/+1
* Move datasource to own file for typeorm cliMadeline2022-12-272-32/+46
* OAuth2 authorize bot flowMadeline2022-12-242-1/+9
* Fix creating bot accountsMadeline2022-12-241-4/+12
* Use config for some default guild propertiesMadeline2022-12-242-30/+27
* Rename limits_rate_disabled -> limits_rate_enabled and remove limits_guilds_h...Madeline2022-12-222-2/+1
* Allow BitField's to be passed as number strings. Pretty sure it fixes #722Madeline2022-12-221-2/+11
* Fix redirect when test client disabledMadeline2022-12-221-1/+0
* Disable test client by defaultMadeline2022-12-211-1/+1
* Merge branch 'maddy/refactor' of github.com:fosscord/fosscord-server into mad...Madeline2022-12-215-3/+168
|\
| * Client: update to canary 165341Puyodead12022-12-205-3/+168
* | Set default cdn endpoints so that local testing worksMadeline2022-12-211-0/+3
|/
* Fix guild features being undefined if not using defaultFeaturesMadeline2022-12-211-1/+1
* Message rate limitingTheArcaneBrony2022-12-191-1/+1
* Registration tokensMadeline2022-12-193-10/+25
* Add register ratelimitTheArcaneBrony2022-12-193-2/+14
* commentsMadeline2022-12-192-0/+2
* flags related rights and stats apiErkin Alp Güney2022-12-192-0/+5
* Fix config loadingMadeline2022-12-191-1/+5
* implement guild profiles and fix user profilesPuyodead12022-12-195-1/+36
* Configurable MFA backup token lengthTheArcaneBrony2022-12-191-0/+1
* case insensitive header for rate limits, fix rate limit default settingsTheArcaneBrony2022-12-192-30/+30
* Create webhooksMadeline2022-12-193-1/+8
* Don't override existing config valuesMadeline2022-12-191-1/+3
* Move UserSettings to own entityTheArcaneBrony2022-12-197-138/+174
* Add additional configMadeline2022-12-1913-22/+51
* Make ConfigValue a directory, move defaults to those classes instead of a sep...TheArcaneBrony2022-12-1951-422/+355
* removed char joiners as they are actually useful, added page breakErkin Alp Güney2022-12-191-3/+4
* make it configurable by guild feature flagErkin Alp Güney2022-12-191-5/+5
* Make fosscord read config from json if CONFIG_PATH is setTheArcaneBrony2022-12-191-8/+14
* Do the funny thing (make user->invite cascade delet)TheArcaneBrony2022-12-181-1/+3
* Made nitro stuff make some senseChrisChrome2022-12-181-1/+0
* Make teams nullableTheArcaneBrony2022-12-181-0/+1
* Refactor applicationsMadeline2022-12-186-1/+28
* Add basic developer panel functionality - doesn't work yetChrisChrome2022-12-183-38/+82
* Move to migrations. Use `npm run generate:db` for first database generation.Madeline2022-12-183-8/+2
* fix: not being able to enable communityPuyodead12022-12-181-1/+2
* Remove discord login configMadeline2022-12-171-10/+0
* comments and suchMadeline2022-12-171-39/+4
* user validation stuffMadeline2022-12-172-12/+5
* Remove bad banned words implementationMadeline2022-12-174-44/+2
* Remove use of `PRODUCTION` env varMadeline2022-12-171-4/+1
* murder migrationsMadeline2022-12-179-317/+0
* Only allow specific server features to be editedMadeline2022-12-051-0/+5
* Await some rabbitmq methods, don't reset some config values on startMadeline2022-11-061-8/+8
* Allow running api, cdn, gateway separatelyMadeline2022-10-311-11/+10
* Add `private_channels_version` to `client_state` in identity. also set sentry...Madeline2022-10-311-0/+2
* various typosMadeline2022-10-281-1/+1
* Fix user settings not saving properly and guild foldersMadeline2022-10-283-5/+6
* Move src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-ser...Madeline2022-10-282-22/+39
* fix bad user validationMadeline2022-10-271-8/+9
* Fix typo in user validationMadeline2022-10-261-3/+3
* handle a specific case with rtl characterMadeline2022-10-251-1/+4
* Remove whitespace characters in banned words detectionMadeline2022-10-251-0/+2
* Fix BannedWords breaking because windows line endingsMadeline2022-10-251-1/+1
* Move message auto mod to the api route instead of a @beforeinsert/update methodMadeline2022-10-252-16/+4
* Forgot some schemas + only generate schemas in util/schemas + add setup scriptMadeline2022-10-243-1/+13
* Change android and ios client downloads to use /download endpoint, update Rel...Madeline2022-10-241-6/+3
* remove self_edit_guilds, was dumbMadeline2022-10-072-2/+1
* Embed cacheMadeline2022-10-032-1/+14
* Twitter embedsMadeline2022-10-031-0/+6
* Make imagor optionalMadeline2022-10-021-0/+2
* Make `afk` optional in ActivitySchemaMadeline2022-10-011-2/+2
* Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and SE...Madeline2022-09-301-1/+2
* Fix client crash on GUILD_CREATEMadeline2022-09-282-0/+2
* Discovery splashes + fix guild icons disappearing on settings changeMadeline2022-09-281-0/+1
* Missed some schemasMadeline2022-09-286-0/+45
* Use PrimaryIdColumn instead of PrimaryColumn in Invite and CategoryMadeline2022-09-282-6/+5
* Generate IDs for entities by defaultMadeline2022-09-281-1/+2
* Fix user validator preventing updateMadeline2022-09-271-40/+51
* Don't fetch all members in guild in Member.addToGuildMadeline2022-09-272-4/+18
* PrettierMadeline2022-09-26102-945/+1816
* Move schemas to /src/util/schemasMadeline2022-09-2645-70/+595
* Remove import to class-validator, fix listening on port message in bundleMadeline2022-09-261-1/+0
* 'Fix' distinct alias typeorm issueMadeline2022-09-263-10/+7
* Refactor to mono-repo + upgrade packagesMadeline2022-09-2583-0/+7266
* :sparkles: rtcFlam3rboy2021-08-1216-1198/+0
* :sparkles: config add rate limitFlam3rboy2021-08-121-13/+47
* fix rabbitmq exportFlam3rboy2021-08-121-11/+15
* :bug: fix config: don't use mongodb change streamsFlam3rboy2021-08-121-4/+4
* :sparkles: added .overwriteChannel function to permissionsFlam3rboy2021-08-121-2/+13
* :sparkles: rabbitmqFlam3rboy2021-08-113-18/+37
* added deleted and disabled check for checkTokenxnacly2021-08-101-1/+1
* :bug: fix MessageTypeFlam3rboy2021-08-091-22/+22
* :recycle: convert bigint literals to objects for backwards compatibilityFlam3rboy2021-08-094-66/+66
* :bug: fix bitfield resolveFlam3rboy2021-08-081-1/+1
* [Config] Make brokers null by defaultDiego Magdaleno2021-07-291-4/+2
* [Config] Handle kafkaDiego Magdaleno2021-07-291-2/+15
* Add regions to ConfigPaul Munteanu2021-07-261-0/+19
* :loud_sound: fix logFlam3rboy2021-07-181-1/+1
* auto throw error if findOne doesn't find any docFlam3rboy2021-07-101-1/+0
* :see_no_evil: :lock: hide db password in logFlam3rboy2021-07-081-1/+3
* :bug: fix ConfigFlam3rboy2021-07-071-1/+1
* :sparkles: checkToken return user dataFlam3rboy2021-06-301-2/+5
* :sparkles: Rate Limit modelFlam3rboy2021-06-281-11/+17
* :bug: fix mongoose cacheFlam3rboy2021-06-272-8/+23
* :sparkles: Config: ipdataApiKey + register.blockProxiesFlam3rboy2021-06-271-0/+4
* :sparkles: allow bot tokensFlam3rboy2021-06-241-0/+1
* :bug: fix checkTokenFlam3rboy2021-06-232-2/+2
* :art: rename recipients -> recipient_idsFlam3rboy2021-05-311-5/+5
* :bug: fix configFlam3rboy2021-05-311-1/+1
* fix message modelFlam3rboy2021-05-301-1/+1
* :sparkles: add requestSignature to ConfigFlam3rboy2021-05-291-1/+3
* :sparkles: add cdn.endpoint to configFlam3rboy2021-05-281-0/+6
* :bug: fix Snowflake workeridFlam3rboy2021-05-251-1/+1
* :bug: fix Snowflake process + worker idFlam3rboy2021-05-251-3/+4
* :bug: fix default endpointFlam3rboy2021-05-251-2/+2
* :sparkles: new configFlam3rboy2021-05-241-108/+199
* additional token checks: user disabled/deleted or if the token was revokedFlam3rboy2021-05-241-1/+8
* Config: Don't cast to unknow and rather give a gernic typeDiego Magdaleno2021-05-231-2/+2
* :bug: fix checktokenFlam3rboy2021-05-231-3/+2
* Config: export getConfigPathForFileDiego Magdaleno2021-05-221-1/+1
* Config: New config and store classes to replace the mongo methodDiego Magdaleno2021-05-221-34/+109
* :bug: fix Message ModelFlam3rboy2021-05-221-3/+3
* :sparkles: system user permissionsFlam3rboy2021-05-221-0/+2
* :bug: fix Channel + Invite ModelFlam3rboy2021-05-221-1/+1
* fix channel permission calcFlam3rboy2021-05-212-2/+2
* :bug: convert string to bigint PermissionsFlam3rboy2021-05-212-3/+11
* :bug: fix typesFlam3rboy2021-05-182-6/+20
* :bug: add MessageType enumFlam3rboy2021-05-143-5/+33
|\
| * :sparkles: add MessageType enumFlam3rboy2021-05-143-5/+33
* | :bug: fix Database toObjectFlam3rboy2021-05-102-3/+3
|/
* :sparkles: add dm permissionFlam3rboy2021-04-261-14/+50
* :bug: fix stringFlam3rboy2021-04-241-1/+2
* :art: String trimSpecial pass string OR undefinedFlam3rboy2021-04-241-1/+2
* :sparkles: throw missing permissionFlam3rboy2021-04-231-4/+11
* Merge branch 'main' of https://github.com/discord-open-source/discord-server-...Flam3rboy2021-04-147-42/+94
|\
| * added toBigInt and BigInt getters to bitfieldsnotsapinho2021-04-085-3/+18
| * Merge branch 'main' of https://github.com/fosscord/fosscord-server-utilxnacly2021-04-084-40/+67
| |\
| | * getPermission use cacheFlam3rboy2021-04-071-5/+5
| | * fix toObject typeFlam3rboy2021-04-071-3/+5
| | * :bug: fix lean not working with virtualsFlam3rboy2021-04-071-0/+9
| | * Merge branch 'main' of https://github.com/discord-open-source/discord-server-...Flam3rboy2021-04-061-1/+2
| | |\
| | | * :arrow_up: update mongodbFlam3rboy2021-04-061-1/+2
| | | * resolve deprecation warningsafeuerstein2021-04-061-1/+1
| | * | :art: remove _id and __v from responseFlam3rboy2021-04-061-0/+7
| | |/
| | * :art: Convert id bigint to stringFlam3rboy2021-04-062-5/+5
| | * :bug: fix User Model guildsFlam3rboy2021-04-061-0/+2
| | * :bug: fix DatabaseFlam3rboy2021-04-062-28/+34
| * | added hasThrowxnacly2021-04-081-0/+10
| |/
* / :zap: export regexFlam3rboy2021-04-142-2/+4
|/
* :sparkles: AuditLogFlam3rboy2021-03-043-3/+7
* :art: getPermission() default optsFlam3rboy2021-03-041-1/+1
* :art: getPermission cacheFlam3rboy2021-03-031-4/+11
* :construction: custom permissionsFlam3rboy2021-03-031-1/+6
* :bug: fix populate. finally 😅Flam3rboy2021-02-231-6/+12
* Custom PermissionFlam3rboy2021-02-221-1/+5
* :bug: fix Permission BitFieldFlam3rboy2021-02-221-10/+15
* :bug: fix Mongodb BigIntFlam3rboy2021-02-161-1/+1
* :bug: fix databaseFlam3rboy2021-02-161-2/+5
* :bug: fix databaseFlam3rboy2021-02-161-5/+2