Commit Graph
92 Commits
Author SHA1 Message Date
Madeline 284d8b72ab Remove whitelist for discord oauth login, add rate limit 2022-07-02 21:46:11 +10:00
Madeline 60ef362251 Merge branch 'fix/channelPermissionOverwriteSchema' into slowcord 2022-07-02 20:43:18 +10:00
Madeline ef1ce8d340 Filter out schemas that block generation instead, and also include util in files 2022-07-02 20:41:40 +10:00
Madeline fc255ca89a Merge branch 'fix/channelPermissionOverwriteSchema' into slowcord 2022-07-02 19:29:15 +10:00
Madeline 14aa1e7913 Typescript-json-schema does not crawl extends 2022-07-02 19:28:35 +10:00
Madeline bb9317d811 Update oauth url 2022-07-02 19:10:14 +10:00
Madeline 15f701d539 Merge branch 'fix/rate_limits' into slowcord 2022-07-02 18:57:21 +10:00
Madeline 9f783ec96e Skip check for rate limit bypass if no user id is provided 2022-07-02 18:55:18 +10:00
Madeline ae6e346cb3 Update default rights 2022-07-02 18:37:20 +10:00
Madeline 845d932e83 ( bad ) lil error message on failed login 2022-06-27 16:40:40 +10:00
Madeline 83ed84c4de removed build dir 2022-06-27 16:40:19 +10:00
Madeline 792f3c53d4 update readme 2022-06-27 16:18:14 +10:00
Madeline ce41dd741d alright signed cookies aren't worth it, nice 2022-06-27 16:13:40 +10:00
Madeline 2d73c53ddf clearing cookies is weird? 2022-06-27 16:12:55 +10:00
Madeline 6e1eb28078 the cookie name is being a bitch? 2022-06-27 16:09:38 +10:00
Madeline 3ac4953a0b Token in localStorage must be JSON 2022-06-27 16:04:17 +10:00
Madeline 6ead04def1 who tf calls the start script run? npm run run, bruh 2022-06-27 16:01:38 +10:00
Madeline 0cadc8611f Forgot an await 2022-06-27 16:00:28 +10:00
Madeline 212301c62c Styling, login whitelists 2022-06-27 15:50:47 +10:00
Madeline 48d286d44d Merge branch 'master' into slowcord 2022-06-27 15:09:30 +10:00
Madeline 01f5850b37 Merge pull request #776 from MaddyUnderStars/fix/member_id
Fix compile errors in latest
2022-06-26 23:35:31 +10:00
Madeline 446ff62bfe Fix compile errors in latest 2022-06-26 23:33:51 +10:00
Madeline d138b2b842 Start of custom login and discord oauth flow 2022-06-26 23:14:10 +10:00
Madeline ee7431f0fa Merge branch 'master' into slowcord 2022-06-26 20:51:39 +10:00
Madeline 53fe9706c4 Merge branch 'feat/pingInformation' into slowcord 2022-06-08 17:01:47 +10:00
Madeline 7a991f3f3c Expose general instance information via api /ping route 2022-06-08 16:58:27 +10:00
Madeline 3ea721b4ba Merge remote-tracking branch 'origin/fix/claim_accounts' into slowcord 2022-05-31 20:03:41 +10:00
Madeline eb00351d87 Merge branch 'feat/defaultRights' into slowcord 2022-05-31 20:01:25 +10:00
Madeline 035a8ead46 Merge branch 'master' into slowcord 2022-05-31 20:01:16 +10:00
Madeline bbcb7b684d Added a configurable default rights value 2022-05-31 17:30:21 +10:00
Madeline f420cfd36c Respect register_dateOfBirth_required = false 2022-05-30 23:29:35 +10:00
Madeline 2e84840213 While backfilling, message ids must now be valid snowflakes, cannot be in the future, and cannot overwrite existing messages 2022-04-24 16:09:38 +10:00
Madeline 3183a3f1f5 Merge branch 'fix/categoryNames' into slowcord 2022-04-24 15:14:13 +10:00
Madeline 903fee9a16 Categories skip most of the ALLOW_INVALID_CHANNEL_NAMES checks on discord.com ( they also trim whitespace ) 2022-04-24 15:09:45 +10:00
Madeline 6e0040a8ca Fix not assigning new changes to input fields in users/@me 2022-04-23 01:48:41 +10:00
Madeline 2a32a481d2 Merge branch 'fix/sanitisation' into slowcord 2022-04-23 01:47:51 +10:00
Madeline 2846e970b4 Can no longer send messages to channel types that do not support it ( categories, voice etc ) 2022-04-23 01:28:03 +10:00
Madeline 7e7a2d3619 Fixed ability for user to edit any property of themselves, including rights, flags. Note to self: schemas.json is a GENERATED file. npm run generate:schema in api/ 2022-04-23 01:07:59 +10:00
Madeline dc2c104b25 Merge branch 'slowcord' of github.com:MaddyUnderStars/fosscord-server into slowcord 2022-04-19 20:10:03 +10:00
Madeline b941560d48 Merge branch 'master' into slowcord 2022-04-19 20:09:22 +10:00
Madeline 12aed1db1f Fix compile errors in checkPassword's entropy check 2022-04-10 17:39:23 +03:00
Madeline 4304b77987 Merge branch 'master' into fix/claim_accounts 2022-04-11 00:26:33 +10:00
Madeline ba6c4bd4f2 Merge branch 'master' into slowcord 2022-04-10 22:05:07 +10:00
Madeline 9f2e9d5faf Resolves #715 2022-04-09 17:03:31 +03:00
Madeline ecf59d30c5 User Notes (#707)
* Notes implementation.
Bug: Client does not save note locally after uploading to server. Client does save after reloading page. Is this due to the response being sent by PUT?

* I don't know why the client doesn't do optimistic UI updates with this, or any updates at all without reloading the page

* Added USER_NOTE_UPDATE event, thanks @TheRealGeoDash2019 !
2022-04-05 12:58:34 +03:00
Madeline 54ffd87e8e Fix typo in table 'client_relase' -> 'client_release' ( and other of the same typo ) (#703)
* Fixed typo in table name 'client_relase' -> 'client_release'. Fixed more typos of the same typo.

* Fixed migration ( but dirty lol )
2022-03-30 17:21:40 +03:00
Madeline 73e48a3b2b fixed migration? 2022-03-31 00:30:15 +11:00
Madeline 91ca2efb7c Merge branch 'fix/relase_typo' into slowcord 2022-03-31 00:06:20 +11:00
Madeline 6972dac560 Merge branch 'master' into slowcord 2022-03-31 00:06:13 +11:00
Madeline c188e23cf6 Fixed typo in table name 'client_relase' -> 'client_release'. Fixed more typos of the same typo. 2022-03-31 00:01:21 +11:00
Madeline b455f4a181 Merge branch 'maddyrtc' into slowcord 2022-03-12 13:10:05 +11:00
Madeline 6ffe277f2f Merge branch 'master' into slowcord 2022-03-12 13:07:16 +11:00
Madeline 4059a00044 Changing Member.premium_since back from Date to number fixes an error in the Discord electron client related to rendering premium status. (#669)
Client throws "Invalid time value", so I'm guessing it's something to do with premium_since not being the date format they want ( allegedly ISO8601, but works with a plain number, so wtf )
2022-03-08 18:10:23 +03:00
Madeline f5f007e81f Added preferred_region optional property of VoiceStateUpdateSchema to allow electron client to connect to voice without crashing 2022-03-08 21:57:20 +11:00
Madeline 3b439f74f1 Merge branch 'fix/electron_premium_since' into maddyrtc 2022-03-08 21:46:51 +11:00
Madeline c79d464186 Changing Member.premium_since back from Date to number fixes an error in the Discord electron client related to rendering premium status.
Client throws "Invalid time value", so I'm guessing it's something to do with premium_since not being the date format they want ( allegedly ISO8601, but works with a plain number, so wtf )
2022-03-08 21:22:02 +11:00
Madeline e731a369e5 VOICE CONNECTS!!! Dtls stuck on "connecting" state + currently no way to edit/inspect packets received or use own packet format in mediasoup ( fork? ) 2022-03-07 22:57:37 +11:00
Madeline b529a37264 augh 2022-03-07 19:15:33 +11:00
Madeline ce9d7339d3 Merge branch 'master' into maddyrtc 2022-03-06 22:09:36 +11:00
Madeline 24ecf9133f Merge branch 'master' into slowcord 2022-03-06 18:59:14 +11:00
Madeline 4ede702657 Fixed npm run tsnode throwing error about ES modules for node-fetch. Probably was api package.json still included node-fetch 3, but bundle still had v2 2022-03-06 10:52:19 +03:00
MadelineandErkin Alp Güney 68f6fe58d5 Tsnode support (#580)
* ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet.

* apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was.

* Cleaned up tsconfig.json a bit ( moved tsnode config to own file ).
Fixed breakpoints for all modules under tsnode

* Removed Microsoft Corp advert
* Remove one more Microsoft Corp. ad

Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>

* Added `tsnode` npm script

* Added `typescript-cached-transpile` package to help improve performance

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-03-06 09:18:35 +03:00
Madeline 44aa39515b Merge branch 'master' into slowcord 2022-03-06 15:34:42 +11:00
Madeline d2cae7a181 Merge branch 'fosscord:master' into slowcord 2022-02-19 11:48:21 +11:00
Madeline 416bdc56ee updated readme 2022-02-18 11:06:33 +11:00
Madeline 93e3f069b5 Merge branch 'fix/claim_accounts' into slowcord 2022-02-18 10:47:53 +11:00
Madeline face67392f Merge branch 'master' into slowcord 2022-02-18 10:47:18 +11:00
Madeline f4dbca6150 Added email sanitisation to /users/@me PATCH. Could previously have email as any string 2022-02-17 20:57:42 +11:00
Madeline dbbe0037d0 Fixed bug in /users/@me PATCH where username must be present in every request, breaking account claiming 2022-02-17 20:32:47 +11:00
Madeline d3f9fb63f3 Merge branch 'master' into maddyrtc 2022-02-17 18:57:04 +11:00
Madeline d491bcd8be Discord.js gateway connection when connecting to voice will close 4002 decode error due to not sending self_video field. temp solution: remove it from server.
this commit will probably be reverted later; I'm just trying to see if a proper ( not self signed ) SSL cert on slowcord.maddy.k.vu will fix this SSL error I'm receiving.
2022-02-17 18:54:16 +11:00
Madeline 204fe2aed1 Merge branch 'master' into maddyrtc 2022-02-13 22:29:14 +11:00
Madeline 7ccdccdcb3 added a absolutely terrible background image and name text to login/register page 2022-02-11 22:45:19 +11:00
Madeline 84b8173f80 Merge branch 'master' into slowcord 2022-02-11 22:03:21 +11:00
Madeline 204f39daaa Merge branch 'tsnode' into slowcord 2022-02-04 20:08:13 +11:00
Madeline b512fa49b0 Remove nulled properties from GET /channels/#id/messages for improved compatibility with some client ( discord.js ) 2022-02-04 19:59:13 +11:00
Madeline 9bdc7933a8 ;jondfgsk 2022-02-04 18:46:09 +11:00
Madeline 108829140a revert dependabot PRs that update node-fetch to v3 2022-01-24 17:06:31 +11:00
Madeline ba79fe858c Merge branch 'master' into tsnode 2022-01-24 10:22:46 +11:00
Madeline f8f236afb2 * Replaced list of invisible characters with unicode codepoints
* No longer silently edit invalid channel names
* No longer trim channel names in unnamed check
2022-01-23 23:29:14 +03:00
Madeline 0a53860645 channel.owner_id is type string not number 2022-01-23 23:29:14 +03:00
Madeline d6f5a08cb5 Add unhandled channel types to IsTextChannel method 2022-01-23 23:29:14 +03:00
MadelineandErkin Alp Güney 028fd7b8b3 Apply suggestions from code review
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-23 23:29:14 +03:00
Madeline 35c7489f72 Added ILLEGAL_CHANNEL_NAMES and NULL_CHANNEL_NAMES guild feature flags 2022-01-23 23:29:14 +03:00
Madeline 9d86d10a85 mmmm 2022-01-21 21:04:45 +11:00
Madeline 7c87f8d60a more fuckery 2022-01-17 02:59:26 +11:00
Madeline aa0357e060 messing around with things I don't understand 2022-01-16 03:35:30 +11:00
Madeline 1569fec0cf boilerplate stuff 2022-01-16 02:38:43 +11:00
Madeline 41fca13db2 Fix typo in commit 277b28c 2022-01-13 10:49:26 +03:00
MadelineandErkin Alp Güney e275d2c77d Message fixes | Character limits and embed fixes (#581)
* Adds message character limits (#503)
* Fixed message `embeds` being ignored for `embed`
* Update Message.ts

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-11 17:27:55 +03:00
Madeline 3f22634033 Merge branch 'fosscord:master' into master 2022-01-03 23:00:29 +11:00
Madeline e89a2ee2f1 Merge branch 'fosscord:master' into master 2022-01-01 15:58:55 +11:00