Madeline
09f5b4f0bb
Fix identify throwing on invalid token instead of closing with auth failed close code
2023-09-02 21:05:27 +10:00
Madeline
2fc3c5dbd4
sentry db instrumentation for gateway events
2023-09-02 20:18:38 +10:00
Madeline
eebd61b19d
update sentry
2023-09-02 14:10:32 +10:00
Madeline
2f48212e6e
typeorm inverse relations of guild relations
2023-09-02 02:21:42 +10:00
Madeline
27bcef502c
Merge branch 'master' of github.com:spacebarchat/server
2023-09-02 01:03:00 +10:00
Madeline
ed7fd34f46
DB_LOGGING env var
2023-09-02 01:01:58 +10:00
Puyodead1
c311edc99c
make guild voice a text based channel
2023-08-27 20:16:49 -04:00
Madeline
3498ffdc01
prevent put /guilds/id/members/id for others until we have oauth2 scopes impled
2023-08-27 16:54:54 +10:00
Madeline
8a7ee8c8a9
what the fuck is session_id: "all"???
2023-08-21 23:57:44 +10:00
Madeline
ccc774168a
Close #1091
2023-08-21 23:28:36 +10:00
Madeline
2cf3833499
remove INVALID_PASSWORD error response. close #1090
2023-08-13 15:18:42 +10:00
Madeline
fd829fc669
Fix OOM on large guild join
2023-08-12 18:18:47 +10:00
Madeline
d18584f8e9
Refactor email sending + remove email verification if mail sending is not set up
2023-08-12 15:36:29 +10:00
Madeline
ecb227105a
remove default welcome screen text
2023-08-12 00:43:38 +10:00
Madeline
23e234a87b
update invites endpoints to support latest api
2023-08-12 00:43:00 +10:00
Madeline
3eb2338c3e
goof
2023-08-12 00:42:14 +10:00
Madeline
c0614b18c3
fix min password length check
2023-08-12 00:20:36 +10:00
Madeline
d06fbcebb8
set rules/updates in guild if we created them
2023-08-12 00:01:00 +10:00
Madeline
139d31e938
Merge pull request #1045 from erkinalp/patch-2
...
Rename the guild feature `INVITES_CLOSED` to `INVITES_DISABLED`
2023-08-11 10:52:15 +10:00
Madeline
326bf08df0
Implement community "create one for me"
2023-08-10 20:37:07 +10:00
Madeline
25099aecb7
Allow enabling welcome screen and check if welcome screen channels exist within the guild ( close #998 )
2023-08-10 20:33:42 +10:00
Madeline
08ff93dab0
Send ratelimit headers regardless of if request was blocked ( close #1022 , close #888 )
2023-08-10 19:40:41 +10:00
Madeline
271460b02f
Gateway close if user could not be fetched just send ID
2023-08-08 11:26:32 +10:00
Madeline
6dc9dd5303
fix reversed check in GET messages
2023-08-07 20:31:36 +10:00
Madeline
efd2318959
set default role flags to 0
2023-08-07 19:41:00 +10:00
Madeline
12799f3d12
allow bot/bearer tokens through Authorization header
2023-08-07 19:36:43 +10:00
Madeline
c6cd8f6581
goof
2023-08-07 19:33:52 +10:00
Puyodead1
fe4acbfee5
Fix linter warnings in connections
2023-08-06 23:15:35 -04:00
Puyodead1
5c8359ec45
Fix connection class imports
2023-08-06 22:56:13 -04:00
Puyodead1
033e2108e7
Fix some linting warnings
2023-08-06 22:51:34 -04:00
Madeline
6a5dc1c361
add back guild id to message tojson
2023-08-07 12:38:20 +10:00
Madeline
32c8211984
update proxy-agent
2023-08-07 12:20:02 +10:00
Madeline
d8ba3e16ee
switch from il8next-node-fs-backend to il8next-fs-backend
2023-08-07 12:10:12 +10:00
Madeline
53aed18652
remove pomelo disclose, to be added in pomelo impl pr
2023-08-01 20:23:00 +10:00
Madeline
496cfc8ea1
some abaddon compat
2023-07-31 21:00:03 +10:00
Madeline
45e7d763cf
lazyrequest dont crash when no members can be found in lazyrequest
2023-07-31 20:59:06 +10:00
Madeline
4c0b1391b1
send empty READY_SUPPLEMENTAL for client compatibility
2023-07-31 19:42:27 +10:00
Madeline
a0d93fb252
* call toJSON of keys in gateway when using erlpack
...
* dont send bitrate/etc as null when should be undefined
* set user flags to number instead of string
* send empty 'threads' in identify when not using new state v2
2023-07-29 16:59:21 +10:00
Madeline
a5a6321156
Merge branch 'master' into feat/refactorIdentify
2023-07-28 10:34:36 +10:00
Madeline
4235dec54d
goof
2023-07-28 09:48:03 +10:00
Madeline
08f17f88e7
Fix regression of 5f22faa57b
2023-07-28 09:45:13 +10:00
Madeline
f1f68c3d31
refactor checkToken
2023-07-28 09:26:18 +10:00
Madeline
8a3989c297
Merge branch 'master' into feat/refactorIdentify
2023-07-28 08:24:15 +10:00
Vincent Junge
e4a8517b93
fix get channel messages around parameter
2023-06-26 16:11:03 +02:00
Madeline
bf079ffa7a
Merge pull request #1066 from Zert3x/master
...
Fix a typo
2023-06-14 18:30:16 +10:00
ngn
e774a9256b
made it prettier
2023-06-11 15:17:03 +03:00
ngn
41f14b3ad8
Make sure min password length is not null
2023-06-11 13:36:51 +03:00
ngn13
ece68990f8
Merge branch 'spacebarchat:master' into pass_length_check
2023-06-11 13:27:23 +03:00
Madeline
9a227e35fa
Merge pull request #1068 from V3L0C1T13S/feat/gen_memberlist_id
...
Implement member list ids
2023-06-11 17:55:59 +10:00
ngn
3dcabc57f6
Making the error message dynamic
2023-06-10 22:17:50 +03:00
ngn13
9efe160340
making min password length configurable
...
Co-authored-by: Puyodead1 <puyodead@proton.me>
2023-06-10 22:13:44 +03:00
ngn
f006ddc735
Implemented password length check
2023-06-10 20:51:21 +03:00
Madeline
6c603afc54
Fix docs for /users/:id/profile
2023-06-11 00:51:03 +10:00
Madeline
6e47b8e0b3
Send user and roles id array in GET /guilds/:id/members/:id
2023-06-11 00:27:38 +10:00
Madeline
e545edad94
Return entire guild object in POST /guilds
2023-05-30 20:09:03 +10:00
Zert3x
09b163f8de
Update Connection.ts
2023-05-28 21:40:21 -04:00
Zert3x
6306c5e725
Update ipAddress.ts
2023-05-28 21:39:50 -04:00
Zert3x
6f7ce2bc77
forwaded -> forwarded
2023-05-28 21:27:01 -04:00
V3L0C1T13S
564d1a2fc9
feat: implement member list id generation
2023-05-24 12:02:03 -04:00
CyberL1
6390786018
fix: add return and run prettier
2023-05-13 11:09:52 +02:00
Cyber
654403a8e8
Merge branch 'spacebarchat:master' into master
2023-05-13 10:48:42 +02:00
Madeline
8ee792c2a2
Prevent /invites/:code for bots
2023-05-12 14:05:28 +10:00
CyberL1
5b3ef06c6b
fix: don't create new vanity url when there's no ALIASABLE_NAMES flag
2023-05-10 18:57:04 +02:00
Puyodead1
ba0d1bb6ff
Merge pull request #1052 from spacebarchat/feat/auto-create-bot-users
...
Feat: Auto add bot users to new apps
2023-05-07 00:15:04 -04:00
Puyodead1
8534342e30
add initial_guild_id client state property
2023-05-07 00:11:18 -04:00
Puyodead1
f256209ff2
fix build failure
2023-05-07 00:06:56 -04:00
Puyodead1
bb22e42da9
create util for app bot user creation
2023-05-07 00:00:42 -04:00
Puyodead1
942cce913d
add option to auto add bot users to new apps
2023-05-06 23:53:43 -04:00
Puyodead1
dedb20d64f
add flags property to voice state update
2023-05-06 23:51:26 -04:00
Pete Pongpeauk
b95827939d
refactor SELECT_PROTOCOL_ACK (4) voice opcode to SESSION_DESCRIPTION
...
Signed-off-by: Pete Pongpeauk <kurtsiberg@gmail.com>
2023-05-04 16:52:26 -04:00
Erkin Alp Güney
21a589c2f6
Rename the guild feature to match discord.com
...
discord.com has this too, and it is called `INVITES_DISABLED`
2023-04-27 18:28:00 +03:00
Madeline
eb62028103
start listening before starting components in bundle
2023-04-24 23:42:25 +10:00
Madeline
797778db68
start listening before starting components in bundle
2023-04-24 23:40:07 +10:00
Madeline
40ad7bb3af
Merge branch 'master' into openapi
2023-04-19 01:27:19 +10:00
Madeline
4c6b1e8e16
Fix UserRelationsResponse schema
2023-04-19 01:24:51 +10:00
Madeline
31b2db8c54
Merge branch 'master' into feat/refactorIdentify
2023-04-18 21:36:28 +10:00
Madeline
cec495cc5f
Enforce theme_colors to be ints
2023-04-18 01:18:05 +10:00
Madeline
164fcc25f3
Fix body-parser errors not being filtered in ErrorHandler middleware
2023-04-16 21:46:50 +10:00
Madeline
b438f2b071
Rewrite getRouteDescriptions, fix message route not appearing in openapi spec
2023-04-16 01:51:52 +10:00
Madeline
46d86c4079
move guild/user prop initialisations into create/register methods
2023-04-14 22:27:22 +10:00
Madeline
4ecee6b291
fix typos
2023-04-14 22:26:11 +10:00
Puyodead1
a8a28542f7
fix some types not being generated correctly
2023-04-13 20:13:58 -04:00
Puyodead1
78d98f0244
spacebar
2023-04-13 15:48:27 -04:00
Puyodead1
866eb15d90
clusterfuck
2023-04-13 15:44:39 -04:00
Puyodead1
4824e14661
oapi: fix a few response types in auth
2023-04-13 15:41:49 -04:00
Puyodead1
e68819d97a
oapi: add missing 2fa types to login
2023-04-13 15:41:49 -04:00
Puyodead1
0d666732c6
oapi: bug fixes
2023-04-13 15:41:23 -04:00
Puyodead1
3a23842924
oapi: root level routes
2023-04-13 15:40:51 -04:00
Puyodead1
fd283f1d15
oapi: voice regions
2023-04-13 15:39:56 -04:00
Puyodead1
860b9d583e
oapi: finish users
2023-04-13 15:39:31 -04:00
Puyodead1
1ce7879ee8
oapi: users progress
2023-04-13 15:38:52 -04:00
Puyodead1
c97ce59a0a
oapi: stickers
2023-04-13 15:33:03 -04:00
Puyodead1
ad5f5cb90d
oapi: sticker packs
2023-04-13 15:32:37 -04:00
Puyodead1
a1d8869271
oapi: readstates
2023-04-13 15:32:05 -04:00
Puyodead1
3fa2a95429
oapi: policies
2023-04-13 15:32:04 -04:00
Puyodead1
1b1fbce4d3
oapi: oauth2
2023-04-13 15:30:37 -04:00
Puyodead1
3a40254ca5
oapi: invites
2023-04-13 15:30:09 -04:00
Puyodead1
5c0a6f4e55
oapi: fix guild discovery requirements
2023-04-13 15:29:21 -04:00
Puyodead1
c2ce88dee7
guilds
2023-04-13 15:28:41 -04:00
Puyodead1
787de50140
backfill missing query params
2023-04-13 15:24:37 -04:00
Puyodead1
0dc5b19bd8
gifs and query params
2023-04-13 15:24:37 -04:00
Puyodead1
6b3a3b750f
fixing lots of openapi crap
2023-04-13 15:20:10 -04:00
Puyodead1
777e7208dc
AAA
2023-04-13 15:06:21 -04:00
Puyodead1
6347a77a79
gateway
2023-04-13 15:05:35 -04:00
Puyodead1
4a7811a25c
channels
2023-04-13 15:04:56 -04:00
Puyodead1
3335f16ad1
applications
2023-04-13 15:00:32 -04:00
Puyodead1
a567ca3f51
auth routes
2023-04-13 14:58:53 -04:00
Madeline
5a6cb33f5e
Merge branch 'master' into feat/refactorIdentify
2023-04-13 19:45:44 +10:00
Madeline
9a6390b9bd
Fix DC client throwing on GUILD_CREATE
2023-04-12 21:03:49 +10:00
Madeline
2d50adf151
Add missing route middleware to messages route
2023-04-12 11:45:51 +10:00
Madeline
3c981b496b
don't allow editing @everyone role
2023-04-11 13:51:55 +10:00
Madeline
80c7eaa70f
Merge pull request #1023 from Rainb0wCodes/master
...
properly track reactions
2023-04-11 13:48:08 +10:00
Madeline
ab07ad692c
send public member in message_reaction_add eventt
2023-04-11 13:47:26 +10:00
Madeline
f040caa712
Merge pull request #1026 from ochen1/patch-3
...
Add support for Discord's new endpoints to update roles
2023-04-11 13:20:09 +10:00
Madeline
d865528442
Add erkins note
2023-04-11 13:19:26 +10:00
Madeline
7a2a41be3e
Don't fetch the entire role relation when counting member ids
2023-04-11 13:17:51 +10:00
Madeline
e9ce4ca51b
member-counts route
2023-04-11 13:11:19 +10:00
Madeline
debfaea866
Use partition func instead + use Promise.all
2023-04-11 12:56:32 +10:00
Madeline
6a148898a5
Remove Member.isInGuildOrFail, as it will always pass ( route permission check )
2023-04-11 12:33:59 +10:00
Madeline
b91fca6d74
prettier
2023-04-11 12:28:16 +10:00
Rainb0w :3
88031fd0b7
Update reactions.ts
2023-04-10 20:26:00 -06:00
Madeline
6dfe88d61b
Merge pull request #1025 from ochen1/patch-2
...
Send guild name and icon of guild through Identify gateway opcode
2023-04-10 17:30:19 +10:00
ochen1
36ac484a9d
Fix obvious bugs in Member removeRole function
2023-04-09 14:22:24 -06:00
ochen1
f4e172eec2
Add PATCH /guilds/#guild_id/roles/#role_id/member-ids API
2023-04-09 12:38:13 -06:00
ochen1
4a7eb89a72
Fix indentation
2023-04-09 12:36:31 -06:00
ochen1
3c2d07d0b1
Add PATCH /guilds/#guild_id/roles/#role_id/members API
...
Discord uses this in the Edit Role menu, Manage members tab to update the list of members with the role.
2023-04-09 12:34:45 -06:00
ochen1
7327669672
Send guild name and icon of guild through Identify gateway opcode
...
These properties are mandatory as per the documentation:
https://discord.com/developers/docs/resources/guild#guild-object
2023-04-09 11:13:28 -06:00
Rainb0w :3
2c067969a0
properly track reactions
2023-04-08 22:07:23 -06:00
Madeline
df696d362a
Close if already identified
2023-04-05 20:47:47 +10:00
Madeline
a9eac479bb
prettier whoops
2023-04-05 19:42:28 +10:00
Madeline
89c77dc449
Missing ready guild properties
2023-04-04 00:20:13 +10:00
Madeline
0095b65050
Role flags
2023-04-04 00:17:02 +10:00
Madeline
3e9e8aac3b
Don't send random read state / guild settings version numbers
2023-04-04 00:16:10 +10:00
Madeline
a476319fb4
Send d: {} in heartbeat ack
2023-04-04 00:15:37 +10:00
Madeline
6ee26082ef
Respect CLIENT_STATE_V2 capability
2023-04-03 23:50:48 +10:00
Madeline
844f1de6aa
License information
2023-04-02 11:32:40 +10:00
Madeline
2e27281e23
Less spammy user connection logs
2023-04-02 11:26:51 +10:00
Madeline
d90fd6b4e5
Update connection metadata visibility
2023-04-02 11:15:08 +10:00
Madeline
218f71b82c
Merge branch 'master' into refactor/dev/connections
2023-04-02 10:55:17 +10:00
Madeline
d944dd4ef4
allow all role props through ready
2023-04-01 19:49:54 +11:00
Madeline
13dedb6d25
Merge branch 'master' into feat/refactorIdentify
2023-04-01 19:04:22 +11:00
Madeline
ed724472b3
gatewayresponse??
2023-04-01 19:01:34 +11:00
Madeline
095cbf7b20
Remove ALL fosscord mentions
2023-03-31 15:52:33 +11:00
Madeline
698ad90d3e
Revert "Merge pull request #1008 from spacebarchat/dev/samuel"
...
This reverts commit 69ea71aa9e
, reversing
changes made to 8b2faf0b18
.
2023-03-31 15:26:15 +11:00
Samuel
c8f65ca4c7
fix: disable cache if multi threaded
2023-03-30 18:26:19 +02:00
Samuel (Flam3rboy)
69ea71aa9e
Merge pull request #1008 from spacebarchat/dev/samuel
2023-03-30 18:13:34 +02:00
Madeline
8b2faf0b18
SPACEBAR
2023-03-31 02:15:42 +11:00
Madeline
64e747a4d2
SPACEBAR
2023-03-31 02:05:02 +11:00
Madeline
59c0dd0731
Merge branch 'master' of github.com:fosscord/fosscord-server
2023-03-24 04:18:19 +11:00
Madeline
0f928e479c
Work towards fixing openapi spec
2023-03-24 04:16:58 +11:00
Madeline
ce52a8884a
Merge pull request #1012 from Puyodead1/patch/totp-user-settings
...
fix totp using wrong settings key
2023-03-22 14:32:50 +11:00
Puyodead1
002480df9d
fix totp using wrong settings key
2023-03-21 22:32:55 -04:00
Madeline
1fd01fa000
Merge branch 'master' of github.com:fosscord/fosscord-server
2023-03-19 22:11:54 +11:00
Madeline
240076a5d8
Add basic information page to /
2023-03-19 21:49:45 +11:00
Puyodead1
5a7765c7dc
prettier
2023-03-18 19:50:38 -04:00
Puyodead1
7116a9a1b0
fix a few linting errors
2023-03-18 19:48:44 -04:00
Madeline
c7277efbad
Move redirect uri generation to getRedirectUri function of Connection class.
...
Use api_endpointPublic instead of cdn_endpointPublic
2023-03-18 19:33:32 -04:00
Madeline
9d5c5a8292
Check visibility for connected accounts in /users/:id/profile
2023-03-18 19:28:47 -04:00
Puyodead1
eab530a63d
Add Youtube connection
2023-03-18 19:28:47 -04:00
Puyodead1
d8ecc4269f
replace node-fetch with wretch
2023-03-18 19:28:46 -04:00
Puyodead1
06140fc768
add Xbox connection
2023-03-18 19:28:46 -04:00
Puyodead1
0baa37e41f
add Twitter connection
2023-03-18 19:28:46 -04:00
Puyodead1
bdd4ddda52
don't send token_data on connection update
2023-03-18 19:28:45 -04:00
Puyodead1
7e10d73dac
use connection revoked error
2023-03-18 19:28:45 -04:00
Puyodead1
6d6944cfee
Add Twitch, error handling, revokation changes, etc
2023-03-18 19:28:45 -04:00
Madeline
a60f147156
Fix connection update visibilty dying when given boolean
2023-03-18 19:27:40 -04:00
Puyodead1
02a4a6998d
Update todo in access-token route
2023-03-18 19:27:40 -04:00
Puyodead1
0db1fa5f0b
Refreshable connections, refactoring, access-token endpoint
...
- Aded /users/@me/connections/:connection_name/:connection_id/access-token
- Replaced `access_token` property on ConnectedAccount with `token_data` object for refreshing tokens
- Made a common interface for connection things like ComonOAuthTokenResponse
- Added `RefreshableConnection` class
- Added token refresh to Spotify connection (disabled)
2023-03-18 19:27:39 -04:00
Madeline
50f068400d
Don't try to upload entire config for each connection loaded
2023-03-18 19:26:16 -04:00
Madeline
42b2237d0f
Switch from Github real name to username for GH connection
2023-03-18 19:26:16 -04:00
Madeline
3f9887d855
Add discriminator usernames for Discord connection
2023-03-18 19:26:15 -04:00
Madeline
2bae842926
Delete connections
2023-03-18 19:26:15 -04:00
Puyodead1
747ff5d322
fix discord connection
2023-03-18 19:26:15 -04:00
Puyodead1
3c7cde5985
Add spotify connection
2023-03-18 19:26:15 -04:00
Puyodead1
ab4a28ee31
Add reddit connection
2023-03-18 19:26:14 -04:00
Puyodead1
901d126d6b
Add facebook connection
2023-03-18 19:26:14 -04:00
Puyodead1
d12751006e
add epic games connection
2023-03-18 19:26:14 -04:00
Madeline
d76198d200
WIP Discord connection
2023-03-18 19:26:14 -04:00
Madeline
8ff3767d32
Fix ConnectionLoader from throwing when uploading default config keys
2023-03-18 19:25:03 -04:00
Madeline
a390596e3c
Follow Discord docs for visibility
and metadata_visibility
fields in ConnectedAccount
2023-03-18 19:25:03 -04:00
Madeline
2364096a97
entities/ConnectionUpdateSchema -> schemas/ConnectionUpdateSchema
2023-03-18 19:25:03 -04:00
Madeline
5491c58ffc
Don't use mergeDeep
2023-03-18 19:23:57 -04:00
Madeline
a4961800d7
handleCallback
returns connection if created for USER_CONNECTIONS_UPDATE
2023-03-18 19:23:20 -04:00
Puyodead1
5c682137b2
implement PATCH connection
2023-03-18 19:16:41 -04:00
Puyodead1
6a52e65e27
adding connection now works
2023-03-18 19:15:40 -04:00
Puyodead1
21bfda32e4
add connections
2023-03-18 19:09:51 -04:00
Samuel
3dc0e68534
feat: add DB_LOGGING env
2023-03-18 05:11:33 +01:00
Samuel
f1f7e5ad7d
fix: local cache
2023-03-18 05:11:14 +01:00
Samuel
c6708f7443
build: remove sqlite3 in favor of better-sqlite3
2023-03-18 04:39:28 +01:00
Samuel
fd1c99db2d
build: remove sqlite3 in favor of better-sqlite3
2023-03-18 04:20:03 +01:00
Samuel
d97dbdf73c
fix: remove proxy
2023-03-18 04:18:18 +01:00
Samuel
7b00e99053
fix: use entity.save() instead of insert (needed for caching)
2023-03-18 04:13:04 +01:00
Samuel
52f8508b38
fix: missing id in select query
2023-03-18 04:12:16 +01:00
Samuel
366c4935a4
feat: Database Query Cache
2023-03-18 04:11:48 +01:00
Samuel
2e473576cf
wip: cache
2023-03-17 19:47:23 +01:00
Samuel
cae6fcc72a
fix: request language property
2023-03-17 19:30:54 +01:00
Samuel
5ba7c6b5bc
perf: optimize getPermission()
2023-03-17 19:18:57 +01:00
Samuel
197f1aacd2
feat: better-sqlite3 support
2023-03-17 19:18:31 +01:00
Samuel
d086c053bb
perf: custom i18next middleware that only initializes when needed
2023-03-17 17:50:59 +01:00
Samuel
810f5dd84c
perf: cache jwt secret as key
2023-03-17 17:47:43 +01:00