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
Puyodead1
0c815fde91
fix: route file regex ( #956 )
2023-01-20 01:52:05 +11:00
Chris Chrome
95ba38b0cf
Merge pull request #955 from fosscord/dev/fix-bans
...
Fix banning users from the client
2023-01-18 19:39:36 -07:00
ChrisChrome
a537df8218
Apparently its still accepted, just depricated
2023-01-18 19:37:15 -07:00
ChrisChrome
6f5d429403
It's seconds, not days
2023-01-18 19:33:30 -07:00
ChrisChrome
70475d8397
Fix a funny security vuln
2023-01-18 12:27:15 -07:00
Chris Chrome
fbac5c7cd7
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
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
Chris Chrome
7152a1c2c1
Add youtu.be embed handler ( #945 )
2023-01-18 17:47:23 +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
V3L0C1T13S
eb2f6ab79a
send GUILD_CREATE after READY event ( #938 )
...
* Fix lazy guilds being sent before READY event
* Make casing consistent
2023-01-17 15:44:29 +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
Chris Chrome
8a23ac19f8
Move endpoints from ping -> policies/instance/domains ( #933 )
2023-01-16 13:46:41 +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
TheArcaneBrony
1d27e61029
Fix some default value
...
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-14 23:34:33 +01:00
TheArcaneBrony
754d8dbf64
Add basic info in ping
...
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-14 19:55:19 +01:00
Madeline
c93f27f514
Update openapi
2023-01-14 19:23:45 +11:00
Erkin Alp Güney
876c15b1a9
Add /users/:id/delete ( #926 )
2023-01-14 19:15:35 +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
TheArcaneBrony
1c4e6e6c91
Fix missed moveCursor call
...
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-13 13:12:12 +01:00
TheArcaneBrony
aa8a6d6248
Fix console fuckery to allow running in a headless terminal, and to fix flickering of output.
...
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-13 13:09:09 +01: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
TheArcaneBrony
6122374e4d
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
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