1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-08 11:52:55 +01:00
Commit Graph

645 Commits

Author SHA1 Message Date
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
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
a1c07173bb Fix new roles having duplicate positions 2022-12-30 18:07:56 +11:00
Madeline
8aa355dee7 Move datasource to own file for typeorm cli 2022-12-27 15:23:56 +11:00
Madeline
a02f929d34 OAuth2 authorize bot flow 2022-12-24 18:55:14 +11:00
Madeline
35938556fe Fix creating bot accounts 2022-12-24 16:28:00 +11:00
Madeline
150f3dbf43 Use config for some default guild properties 2022-12-24 13:47:38 +11:00
Madeline
ec1c340369 Rename limits_rate_disabled -> limits_rate_enabled and remove limits_guilds_hideOfflineMember 2022-12-22 21:01:29 +11:00
Madeline
bf5f936aec Allow BitField's to be passed as number strings. Pretty sure it fixes #722 2022-12-22 18:53:21 +11:00
Madeline
9b8f26c512 Fix redirect when test client disabled 2022-12-22 12:13:13 +11:00
Madeline
92b1c5b800 Disable test client by default 2022-12-21 19:52:08 +11:00
Madeline
fe4db63ab8 Merge branch 'maddy/refactor' of github.com:fosscord/fosscord-server into maddy/refactor 2022-12-21 16:10:26 +11:00
Madeline
92227cdf18 Set default cdn endpoints so that local testing works 2022-12-21 15:37:16 +11:00
Puyodead1
8a28dd4675 Client: update to canary 165341 2022-12-20 23:25:20 -05:00
Madeline
0aead491dc Fix the roles bug 2022-12-21 15:17:06 +11:00
Madeline
2d67355a52 Fix guild features being undefined if not using defaultFeatures 2022-12-21 14:55:23 +11:00
Madeline
303b1255fa Set default threads to 1. Multiple threads is broken without Rabbitmq 2022-12-20 22:45:42 +11:00
Madeline
e6ae9d32e8 Reg tokens bypass other restrictions 2022-12-19 22:23:31 +11:00
TheArcaneBrony
bdda215005 Message rate limiting 2022-12-19 22:17:06 +11:00
Madeline
ddd3c86043 Registration tokens 2022-12-19 22:04:52 +11:00
TheArcaneBrony
3227933f28 Add register ratelimit 2022-12-19 20:57:43 +11:00
Madeline
f5671775ef comments 2022-12-19 20:50:36 +11:00
Erkin Alp Güney
8eff4de19d flags related rights and stats api 2022-12-19 20:49:38 +11:00
Puyodead1
ae199e3445 fix user profile not displaying correctly 2022-12-19 20:43:54 +11:00
Madeline
f69aaa223e Fix config loading 2022-12-19 20:39:43 +11:00
Puyodead1
b84aa73852 implement guild profiles and fix user profiles 2022-12-19 20:37:59 +11:00
TheArcaneBrony
5e289fea77 Configurable MFA backup token length 2022-12-19 19:52:23 +11:00
TheArcaneBrony
da2fe81a8b case insensitive header for rate limits, fix rate limit default settings
Also disabled rate limit bypass right as it doesn't work...
2022-12-19 19:51:14 +11:00
TheArcaneBrony
0ab0a6ff16 Replace deprecated property 2022-12-19 19:32:39 +11:00
Madeline
ac74a2cec4 Create webhooks 2022-12-19 19:31:23 +11:00
Madeline
295ef797fb Don't override existing config values 2022-12-19 18:35:36 +11:00
TheArcaneBrony
803ab38fad Move UserSettings to own entity 2022-12-19 17:52:44 +11:00
Madeline
d407d8ebe7 Add additional config 2022-12-19 16:51:24 +11:00
TheArcaneBrony
bc669ea9e1 Make ConfigValue a directory, move defaults to those classes instead of a separate object 2022-12-19 16:14:21 +11:00
Erkin Alp Güney
94b07e5efb removed char joiners as they are actually useful, added page break 2022-12-19 16:01:30 +11:00
Erkin Alp Güney
db4ed3bb6d make it configurable by guild feature flag 2022-12-19 15:59:58 +11:00
TheArcaneBrony
655ea00ff4 Make fosscord read config from json if CONFIG_PATH is set 2022-12-19 00:01:33 +11:00
TheArcaneBrony
5e4bbc2e83 Do the funny thing (make user->invite cascade delet) 2022-12-18 23:58:17 +11:00
ChrisChrome
ad5248ff97 Made nitro stuff make some sense 2022-12-18 23:54:48 +11:00
ChrisChrome
cdb500e8e6 Invalidate tokens on password change 2022-12-18 23:51:42 +11:00
TheArcaneBrony
39f4aa6b70 Make teams nullable 2022-12-18 23:48:17 +11:00
Madeline
b74453d802 Refactor applications 2022-12-18 23:45:29 +11:00
ChrisChrome
44c21039a3 Whoops 2022-12-18 22:44:17 +11:00
ChrisChrome
55d111c68b Whoops, missed one 2022-12-18 22:44:11 +11:00
ChrisChrome
5474ff5fbe I'm probably forgetting a lot of things, but hey, it works 2022-12-18 22:43:55 +11:00
ChrisChrome
455d7432cf It works now... I guess
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2022-12-18 22:43:14 +11:00
ChrisChrome
245127f651 Add basic developer panel functionality - doesn't work yet
>
>
> Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2022-12-18 22:40:25 +11:00
TheArcaneBrony
974cae0332 Remove some old test logs that expose info to console 2022-12-18 22:26:06 +11:00
TheArcaneBrony
7d7567a1a0 Remove todo line that has been implemented. 2022-12-18 22:24:11 +11:00
Madeline
32e9d1828c Move to migrations. Use npm run generate:db for first database generation. 2022-12-18 22:14:12 +11:00
Puyodead1
1f72d884b2 fix: not being able to enable community 2022-12-18 16:31:03 +11:00
Madeline
15090143d0 Add comment for 123 magic number 2022-12-17 19:50:30 +11:00
Madeline
1e2e82d975 Remove discord login config 2022-12-17 19:43:18 +11:00
Madeline
061a03eced Remove /policies/instance/stats 2022-12-17 19:42:40 +11:00
Madeline
bf420aac32 Remove Discord oauth login support 2022-12-17 19:41:49 +11:00
Madeline
5ededaf289 Remove fluent-ffmpeg dep. TODO: Merge puyo's PR 2022-12-17 19:33:51 +11:00
Madeline
b25fa163ae Remove unneeded comments 2022-12-17 19:05:29 +11:00
Madeline
e4d85450b8 Remove IP logging from gateway 2022-12-17 19:01:48 +11:00
Madeline
f59ec466de comments and such 2022-12-17 19:00:40 +11:00
Madeline
1148eaa6a2 user validation stuff 2022-12-17 18:50:27 +11:00
Madeline
1e88d63186 Remove sharp dep 2022-12-17 18:46:44 +11:00
Madeline
444e815690 Remove bad banned words implementation 2022-12-17 18:45:42 +11:00
Madeline
d1c90c8c09 Remove /api/-/monitorz 2022-12-17 18:32:46 +11:00
Madeline
e7a6be0639 Premium tier 0 SKU from staging 2022-12-17 17:44:30 +11:00
Madeline
ec6666edee Remove Slowcord demo user restrictions 2022-12-17 17:32:10 +11:00
Madeline
eafa93b035 Remove use of PRODUCTION env var 2022-12-17 17:29:42 +11:00
Madeline
8d6b027242 murder migrations 2022-12-17 17:25:31 +11:00
Madeline
d8b3e95942 Only allow specific server features to be edited 2022-12-05 20:02:34 +11:00
Madeline
fbde8f978b Fix private messages being returned when no channel_id provided in search 2022-12-05 19:29:50 +11:00
Madeline
b380cf19ba Fix bug allowing any member from kicking any member instance-wide 2022-12-05 19:16:40 +11:00
Madeline
9710d74541 Fix prune 2022-12-03 22:58:29 +11:00
Madeline
72faa449e0 Await some rabbitmq methods, don't reset some config values on start 2022-11-06 18:59:31 +11:00
Madeline
4469acd390 Fix 404 handler 2022-11-05 21:59:12 +11:00
Madeline
4cb6c2639f Rewrite gateway message decoding 2022-10-31 20:49:32 +11:00
Madeline
5b849749d5 Fix message patching sending old message rather than updated one 2022-10-31 15:09:52 +11:00
Madeline
49ae07ff29 Allow running api, cdn, gateway separately 2022-10-31 13:17:21 +11:00
Madeline
1cacd4413a Add private_channels_version to client_state in identity. also set sentry user in gateway 2022-10-31 12:16:15 +11:00
Madeline
5a5a20c203 Sentry stuff? 2022-10-30 11:34:25 +11:00
Madeline
574fc1d7a0 various typos 2022-10-28 21:42:52 +11:00
Madeline
00e3606f7c Fix user settings not saving properly and guild folders 2022-10-28 19:23:02 +11:00
Madeline
78962acc9d lol 2022-10-28 16:06:02 +11:00
Madeline
e991e00f32 Move src-slowcord to own repo https://github.com/MaddyUnderStars/slowcord-services 2022-10-28 15:25:58 +11:00
Madeline
c00c70985c fix bad user validation 2022-10-27 23:12:48 +11:00
Madeline
5f0d16d4bf Make /stop route not ugly as hell 2022-10-26 19:50:51 +11:00
Madeline
070b193987 Fix typo in user validation 2022-10-26 18:45:25 +11:00
Madeline
fdbd150ce3 handle a specific case with rtl character 2022-10-25 11:27:39 +11:00
Madeline
aba1d02941 Remove whitespace characters in banned words detection 2022-10-25 11:20:01 +11:00
Madeline
c1b955aaae Fix BannedWords breaking because windows line endings 2022-10-25 11:12:08 +11:00
Madeline
a11686cfc6 Fix fix for twitter embeds from yesterday 2022-10-25 11:00:01 +11:00
Madeline
f5b50ed3a8 Move message auto mod to the api route instead of a @beforeinsert/update method 2022-10-25 10:58:36 +11:00
Madeline
d3d9f4ae2f Fix tweets with only video breaking embeds 2022-10-24 19:53:14 +11:00
Madeline
a2f5762791 Forgot some schemas + only generate schemas in util/schemas + add setup script 2022-10-24 19:46:33 +11:00
Madeline
94669d7911 Handle fetch errors in cdn external endpoint 2022-10-24 16:51:41 +11:00
Madeline
0be1949130 Change android and ios client downloads to use /download endpoint, update Release entity to suck less 2022-10-24 14:35:08 +11:00
Madeline
0e315d27ab remove self_edit_guilds, was dumb 2022-10-07 20:07:35 +11:00
Madeline
f73512aa02 fix self_edit_guilds right 2022-10-07 20:02:48 +11:00
Madeline
b2aac3eed7 embed fail 2022-10-05 16:10:24 +11:00
Madeline
ca9d09bb22 Check nonce in Message send 2022-10-05 01:30:37 +11:00
Madeline
73923e269a Video attachment support! 2022-10-04 19:22:50 +11:00
Madeline
7db5c02189 capture exception in sentry for embed processing 2022-10-04 15:43:01 +11:00
Madeline
c885fd5503 Embed cache 2022-10-03 23:50:34 +11:00
Madeline
69ff9c944c Twitter embeds 2022-10-03 23:38:53 +11:00
Madeline
5b463ee156 Make imagor optional 2022-10-02 22:25:47 +11:00
Madeline
5bbe2666d0 Use imagor for image resizing 2022-10-02 15:28:03 +11:00
Madeline
d341fe44d7 More embed improvements 2022-10-02 14:41:10 +11:00
Madeline
070ce373e9 Slightly better embeds 2022-10-01 15:59:30 +10:00
Madeline
e18af893f6 Better embed handling 2022-10-01 14:44:32 +10:00
Madeline
547a57055f Make afk optional in ActivitySchema 2022-10-01 00:55:11 +10:00
Madeline
95e7238e8f Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and SELF_EDIT_GUILDS for control over guilds you own or have perms to edit 2022-09-30 13:32:48 +10:00
Madeline
835a5ab3a3 Fix fetching members for roles in POST message 2022-09-29 21:29:54 +10:00
Madeline
357aada969 Prevent URL embedding and mentions when in codeblock 2022-09-29 15:53:13 +10:00
Madeline
357ec51f1c Update read state on message create 2022-09-29 15:30:11 +10:00
Madeline
891e548396 Fix client crash on GUILD_CREATE 2022-09-28 22:48:18 +10:00
Madeline
2517c472e8 Remove user settings from GUILD_MEMBER_LIST_UPDATE response 2022-09-28 18:11:01 +10:00
Madeline
089c321bf7 whoops 2022-09-28 17:11:10 +10:00
Madeline
02913b5e24 Discovery splashes + fix guild icons disappearing on settings change 2022-09-28 17:07:36 +10:00
Madeline
138cad6b8d Fix user guild settings 2022-09-28 16:39:26 +10:00
Madeline
7818e8dd3c Missed some schemas 2022-09-28 16:39:05 +10:00
Madeline
f75a7bac16 Use PrimaryIdColumn instead of PrimaryColumn in Invite and Category 2022-09-28 16:08:33 +10:00
Madeline
550b830f46 Generate IDs for entities by default 2022-09-28 16:07:58 +10:00
Madeline
add54e6b68 Fix user validator preventing update 2022-09-27 23:30:46 +10:00
Madeline
ff28c95f2a Fix message editing 2022-09-27 23:02:43 +10:00
Madeline
c461a94da0 Bad check for if buffer is json string instead of gzip 2022-09-27 21:44:44 +10:00
Madeline
8041c69960 Set tutorial to null 2022-09-27 19:30:20 +10:00
Madeline
5563a92d25 Don't fetch all members in guild in Member.addToGuild 2022-09-27 18:51:43 +10:00
Madeline
99ee7e9400 Prettier 2022-09-26 22:41:21 +10:00
Madeline
fcc0884e36 Remove the cdn storage location log 2022-09-26 22:13:02 +10:00
Madeline
849b257db7 Move schemas to /src/util/schemas 2022-09-26 22:08:14 +10:00
Madeline
4ca5a4d0b7 Add generate:client script 2022-09-26 20:33:57 +10:00
Madeline
5f46f559b7 Remove import to class-validator, fix listening on port message in bundle 2022-09-26 13:30:47 +10:00
Madeline
9c688527ec Rearrange assets a bit, fix anything that uses assets folder 2022-09-26 12:57:36 +10:00
Madeline
ac64c08817 Add logout endpoint 2022-09-26 12:42:14 +10:00
Madeline
c3591a8233 'Fix' distinct alias typeorm issue 2022-09-26 12:42:01 +10:00
Madeline
f44f5d7ac2 Refactor to mono-repo + upgrade packages 2022-09-25 23:35:18 +10:00
Flam3rboy
eaa65db361 🐛 fix types + packages 2021-08-13 19:20:03 +02:00
darkhpp
2c2d815c53 [ProjectManagement] Add root project and dev getting started guides. 2021-08-13 13:34:00 +07:00
Flam3rboy
b1f3c9bc6a webrtc 2021-08-12 20:50:29 +02:00
Flam3rboy
4fc395823d 🚧 init 2021-06-24 08:51:39 +02:00