summary refs log tree commit diff
path: root/src/api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove ALL fosscord mentionsMadeline2023-03-31149-272/+271
|
* Revert "Merge pull request #1008 from spacebarchat/dev/samuel"Madeline2023-03-316-60/+29
| | | | | This reverts commit 69ea71aa9e0bd2e5a98904a66fba0ad3745707cb, reversing changes made to 8b2faf0b18336e5dff1eeff4e849bcfd96b09e88.
* Merge pull request #1008 from spacebarchat/dev/samuelSamuel (Flam3rboy)2023-03-306-29/+60
|\
| * fix: remove proxySamuel2023-03-181-4/+0
| |
| * fix: use entity.save() instead of insert (needed for caching)Samuel2023-03-182-4/+4
| |
| * fix: missing id in select querySamuel2023-03-181-0/+1
| |
| * fix: request language propertySamuel2023-03-171-5/+6
| |
| * perf: custom i18next middleware that only initializes when neededSamuel2023-03-171-18/+38
| |
| * perf: cache jwt secret as keySamuel2023-03-172-6/+19
| |
| * build: update dependenciesSamuel2023-03-171-1/+1
| |
* | SPACEBARMadeline2023-03-31157-157/+157
| |
* | SPACEBARMadeline2023-03-31157-155/+191
| |
* | Merge branch 'master' of github.com:fosscord/fosscord-serverMadeline2023-03-241-1/+1
|\ \
| * \ Merge pull request #1012 from Puyodead1/patch/totp-user-settingsMadeline2023-03-221-1/+1
| |\ \ | | | | | | | | fix totp using wrong settings key
| | * | fix totp using wrong settings keyPuyodead12023-03-211-1/+1
| | |/
* | / Work towards fixing openapi specMadeline2023-03-244-34/+0
|/ /
* | Merge branch 'master' of github.com:fosscord/fosscord-serverMadeline2023-03-191-1/+3
|\|
* | Add basic information page to /Madeline2023-03-191-0/+11
|/
* Fix UserSettings relation being in `select` rather than `relations`Madeline2023-03-164-6/+7
|
* Remove test client and client patcherMadeline2023-03-011-2/+0
|
* Rename password_reset config to passwordReset as it messes with config key ↵Madeline2023-02-251-1/+1
| | | | generation
* Merge branch 'master' of github.com:fosscord/fosscord-serverMadeline2023-02-241-1/+1
|\
| * fix a few issues with emailsPuyodead12023-02-241-1/+1
| |
* | send required_action in gateway for when email verification is requiredMadeline2023-02-241-11/+0
|/
* first batch of requested changesPuyodead12023-02-242-44/+67
|
* don't return token on register if verification requiredPuyodead12023-02-241-0/+11
|
* implement password resetPuyodead12023-02-244-1/+152
|
* don't print anything if email send is successfulPuyodead12023-02-241-2/+1
|
* add right to resend verification emailsPuyodead12023-02-231-21/+25
|
* fix: email verificationPuyodead12023-02-232-15/+15
|
* fix: verification required for login not working correctlyPuyodead12023-02-231-0/+1
|
* config: require account verificationPuyodead12023-02-232-6/+13
|
* fix linting errorsPuyodead12023-02-231-11/+4
|
* Fix template rendering and use verify email templatePuyodead12023-02-231-1/+1
| | | | email html is weird, some stuff isn't supported.
* Email verification worksPuyodead12023-02-233-5/+72
| | | | | | | | - Added /auth/verify to authenticated route whitelist - Updated /auth/verify to properly mark a user as verified, return a response, and fix expiration time check - Implemented /auth/verify/resend - Moved verification email sending to a helper method - Fixed VerifyEmailSchema requiring captcha_key
* add missing copyright headersPuyodead12023-02-231-0/+18
|
* send email verificationPuyodead12023-02-231-0/+45
|
* Start implementing smtpPuyodead12023-02-231-9/+11
|
* Fix gateway encoding Date objects as {} when using erlpack. Fixes ↵Madeline2023-02-211-18/+2
| | | | NaN/NaN/NaN timestamps in desktop client
* Close #954Madeline2023-02-211-0/+19
|
* Remove channel mentions from messages, in order to fix them in test client.TheArcaneBrony2023-02-201-6/+10
| | | | Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Fix being unable to unset nicknamesMadeline2023-02-051-1/+11
| | | | | Remove unwanted guild profile handler in cdn Fix rights check for bio/avatars of your own user
* various fixes for webauthn (#973)Puyodead12023-02-033-9/+21
|
* run add:licenseMadeline2023-02-031-0/+18
|
* Don't allow message types to be editedMadeline2023-02-031-6/+3
|
* Merge pull request from GHSA-9qvc-84ch-5p2xMadeline2023-02-021-1/+26
| | | | | * Check permissions and rights * Prevent editing message type unless MANAGE_MESSAGES right. Also don't send sensitive data in patch response.
* Merge pull request from GHSA-hqqp-gpqw-9w5cMadeline2023-02-021-2/+2
|
* Merge pull request from GHSA-9q7f-pv47-cxp9Madeline2023-02-021-1/+13
|
* Merge pull request from GHSA-r7h4-76f7-6264Madeline2023-02-021-0/+10
| | | | | * Actually use maxUsername config value. * Change maxUsername default to discord.com default
* check pw and other auth before letting users undisableMadeline2023-01-311-19/+19
|
* read-states/ack-bulk (#969)Madeline2023-01-301-0/+41
|
* Implement WebAuthn (#967)Puyodead12023-01-306-8/+401
| | | | | | | | | * implement webauthn * code review --------- Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
* also don't use 3002 as default when gateway endpoints are nullMadeline2023-01-263-3/+3
|
* Add ESLint (#941)Madeline2023-01-2080-312/+360
| | | | | | | * Add eslint, switch to lint-staged for precommit * Fix all ESLint errors * Update GH workflow to check prettier and eslint
* Fix a funny security vulnChrisChrome2023-01-181-1/+1
|
* Merge pull request #952 from fosscord/dev/endpoints-in-pingChris Chrome2023-01-181-1/+3
|\ | | | | Merge /dev/endpoints-in-ping to master
| * Merge pull request #934 from fosscord/masterMadeline2023-01-162-5/+15
| |\ | | | | | | Merge master into dev/endpoints-in-ping
| * | Move endpoints from ping -> policies/instance/domains (#933)Chris Chrome2023-01-162-9/+4
| | |
| * | Fix some default valueTheArcaneBrony2023-01-141-1/+2
| | | | | | | | | | | | Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
| * | Add basic info in pingTheArcaneBrony2023-01-141-1/+7
| | | | | | | | | | | | Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* | | Add youtu.be embed handler (#945)Chris Chrome2023-01-181-1/+3
| | |
* | | Script to add license preamble to each file. Also, does that. (#935)Madeline2023-01-18149-2/+2683
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Fix deleting an application if it has a botMadeline2023-01-171-2/+0
| |/ |/|
* | Return embed proxy url even if imagor not set up. Also make warning nicerMadeline2023-01-161-5/+14
| |
* | Update dead linesMadeline2023-01-161-1/+1
| |
* | Add an error log if embed handler fails, in addition to the existing sentry logMadeline2023-01-151-0/+1
|/
* Add /users/:id/delete (#926)Erkin Alp Güney2023-01-141-0/+39
|
* Dev/post refactor fixes (#927)TheArcaneBrony2023-01-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add back include_url param to reg tokensMadeline2023-01-101-3/+11
|
* Move sentry init to util. use sentry in each module, not just bundleMadeline2023-01-101-1/+4
|
* PrettierMadeline2023-01-0531-487/+765
|
* Merge pull request #922 from MaddyUnderStars/maddy/bodyParserPatchMadeline2023-01-021-2/+8
|\ | | | | Patch body-parser to use json-bigint, like gateway
| * Profile themes and pronounsMadeline2022-12-311-2/+8
| |
* | Use adjusted email in /auth/loginMadeline2023-01-021-1/+1
| |
* | Revert "Don't let users undisable their accounts"Madeline2023-01-011-6/+8
| | | | | | | | This reverts commit cd84412c92c447826ebb2668295d46956618d962.
* | Don't let users undisable their accountsMadeline2023-01-011-8/+6
|/
* Fix new roles having duplicate positionsMadeline2022-12-302-6/+13
|
* OAuth2 authorize bot flowMadeline2022-12-241-0/+146
|
* Fix creating bot accountsMadeline2022-12-241-1/+4
|
* Rename limits_rate_disabled -> limits_rate_enabled and remove ↵Madeline2022-12-221-2/+2
| | | | limits_guilds_hideOfflineMember
* Set default cdn endpoints so that local testing worksMadeline2022-12-211-1/+1
|
* Fix the roles bugMadeline2022-12-211-5/+8
|
* Reg tokens bypass other restrictionsMadeline2022-12-191-21/+22
|
* Message rate limitingTheArcaneBrony2022-12-191-1/+22
|
* Registration tokensMadeline2022-12-193-2/+52
|
* Add register ratelimitTheArcaneBrony2022-12-191-1/+15
|
* flags related rights and stats apiErkin Alp Güney2022-12-191-0/+22
|
* fix user profile not displaying correctlyPuyodead12022-12-191-2/+9
|
* implement guild profiles and fix user profilesPuyodead12022-12-193-79/+130
|
* Replace deprecated propertyTheArcaneBrony2022-12-191-1/+1
|
* Create webhooksMadeline2022-12-192-4/+26
|
* Move UserSettings to own entityTheArcaneBrony2022-12-191-4/+6
|
* Add additional configMadeline2022-12-191-1/+1
|
* Invalidate tokens on password changeChrisChrome2022-12-181-2/+10
|
* Make teams nullableTheArcaneBrony2022-12-181-1/+0
|
* Refactor applicationsMadeline2022-12-183-84/+104
|
* WhoopsChrisChrome2022-12-181-1/+1
|
* Whoops, missed oneChrisChrome2022-12-181-1/+0
|
* I'm probably forgetting a lot of things, but hey, it worksChrisChrome2022-12-181-1/+6
|
* It works now... I guessChrisChrome2022-12-182-2/+1
| | | | Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Add basic developer panel functionality - doesn't work yetChrisChrome2022-12-184-2/+147
| | | | | | > > > Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Remove some old test logs that expose info to consoleTheArcaneBrony2022-12-182-3/+0
|
* Remove todo line that has been implemented.TheArcaneBrony2022-12-182-7/+1
|
* Remove /policies/instance/statsMadeline2022-12-171-21/+0
|
* Remove Discord oauth login supportMadeline2022-12-173-123/+1
|
* Remove `sharp` depMadeline2022-12-171-3/+4
|
* Remove bad banned words implementationMadeline2022-12-173-12/+1
|
* Remove /api/-/monitorzMadeline2022-12-171-22/+0
|
* Premium tier 0 SKU from stagingMadeline2022-12-171-50/+205
|
* Remove Slowcord demo user restrictionsMadeline2022-12-172-6/+0
|
* Only allow specific server features to be editedMadeline2022-12-051-0/+22
|
* Fix private messages being returned when no channel_id provided in searchMadeline2022-12-051-3/+17
|
* Fix bug allowing any member from kicking any member instance-wideMadeline2022-12-051-3/+3
|
* Fix pruneMadeline2022-12-031-1/+1
|
* Fix 404 handlerMadeline2022-11-051-3/+4
|
* Fix message patching sending old message rather than updated oneMadeline2022-10-311-3/+3
|
* Allow running api, cdn, gateway separatelyMadeline2022-10-312-2/+4
|
* Fix user settings not saving properly and guild foldersMadeline2022-10-281-4/+5
|
* lolMadeline2022-10-281-1/+1
|
* Move src-slowcord to own repo ↵Madeline2022-10-285-1/+146
| | | | https://github.com/MaddyUnderStars/slowcord-services
* fix bad user validationMadeline2022-10-271-0/+1
|
* Make /stop route not ugly as hellMadeline2022-10-261-21/+5
|
* Fix fix for twitter embeds from yesterdayMadeline2022-10-251-1/+1
|
* Move message auto mod to the api route instead of a @beforeinsert/update methodMadeline2022-10-252-1/+13
|
* Fix tweets with only video breaking embedsMadeline2022-10-241-8/+8
|
* Forgot some schemas + only generate schemas in util/schemas + add setup scriptMadeline2022-10-242-12/+2
|
* Change android and ios client downloads to use /download endpoint, update ↵Madeline2022-10-244-26/+48
| | | | Release entity to suck less
* remove self_edit_guilds, was dumbMadeline2022-10-071-2/+2
|
* fix self_edit_guilds rightMadeline2022-10-071-2/+2
|
* embed failMadeline2022-10-051-2/+2
|
* Check nonce in Message sendMadeline2022-10-051-0/+13
|
* capture exception in sentry for embed processingMadeline2022-10-041-0/+6
|
* Embed cacheMadeline2022-10-031-6/+23
|
* Twitter embedsMadeline2022-10-032-11/+96
|
* Make imagor optionalMadeline2022-10-021-12/+15
|
* Use imagor for image resizingMadeline2022-10-021-3/+15
|
* More embed improvementsMadeline2022-10-021-50/+74
|
* Slightly better embedsMadeline2022-10-011-27/+155
|
* Better embed handlingMadeline2022-10-013-128/+156
|
* Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and ↵Madeline2022-09-301-1/+1
| | | | SELF_EDIT_GUILDS for control over guilds you own or have perms to edit
* Fix fetching members for roles in POST messageMadeline2022-09-292-16/+21
|
* Prevent URL embedding and mentions when in codeblockMadeline2022-09-291-3/+3
|
* Update read state on message createMadeline2022-09-291-8/+16
|
* whoopsMadeline2022-09-281-1/+1
|
* Discovery splashes + fix guild icons disappearing on settings changeMadeline2022-09-281-7/+16
|
* Fix user guild settingsMadeline2022-09-281-13/+7
|
* Missed some schemasMadeline2022-09-283-24/+2
|
* Fix message editingMadeline2022-09-271-1/+1
|
* PrettierMadeline2022-09-26106-2321/+4033
|
* Move schemas to /src/util/schemasMadeline2022-09-2640-401/+35
|
* Rearrange assets a bit, fix anything that uses assets folderMadeline2022-09-262-4/+6
|
* Add logout endpointMadeline2022-09-261-0/+16
|
* Refactor to mono-repo + upgrade packagesMadeline2022-09-25143-0/+131143