1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00
Commit Graph

643 Commits

Author SHA1 Message Date
TomatoCake
15a2e57b05 Prettier & fix merge util/handlers/Message 2024-07-18 14:42:22 +02:00
TomatoCake
128b81bc6a Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server into feat/webhooks-3 2024-07-18 14:41:14 +02:00
TomatoCake
59c42c950b try manual conflict resolving 2024-07-18 13:31:04 +02:00
TomatoCake
6be3714593 Fix ESLint & prettier 2024-07-18 12:52:00 +02:00
TomatoCake
e7a98b6c46 webhook fixes & username/avatar property for msg 2024-07-18 12:42:07 +02:00
TomatoCake
d3ece937e6 Make channel ID optional when replying 2024-07-17 20:34:09 +10:00
Cyber
df9153f5ba feat: badge-icons cdn route 2024-07-17 19:55:29 +10:00
Cyber
01ca7b7736 feat: badges 2024-07-17 19:55:29 +10:00
TomatoCake
2f679fda5d Support apng & webm 2024-07-17 19:55:03 +10:00
TomatoCake
0096938d36 Support proper "animated" property for emojis 2024-07-17 19:55:03 +10:00
TomatoCake
c4469a53e7 Move route to api/connections 2024-07-17 19:53:31 +10:00
TomatoCake
bbaef373f9 Run prettier .-. 2024-07-17 19:53:31 +10:00
TomatoCake
d56ba86851 Update schema & add response type 2024-07-17 19:53:31 +10:00
TomatoCake
216b7ff31b Add /policies/instance/connections 2024-07-17 19:53:31 +10:00
Puyodead1
9f049cb968
update default avatars 2024-07-10 01:53:16 -04:00
Cyber
7698a15f03 fix: check for message components 2024-07-09 17:19:28 +02:00
Cyber
21579b11cd fix: poll message is not an empty message 2024-07-09 16:02:11 +02:00
TomatoCake
9b02e82614 Make poll a single object instead of an array 2024-07-09 22:58:10 +10:00
Madeline
44c73637c7
Merge pull request #1138 from DEVTomatoCake/fix/connection-redirect-uri 2024-07-09 15:31:57 +10:00
Madeline
4fb7ad9b37
Merge pull request #1137 from DEVTomatoCake/fix/cdn-proxy-path 2024-07-09 15:31:26 +10:00
Madeline
4774bae7c6
Merge branch 'master' into feat/new-msg-props 2024-07-09 15:29:16 +10:00
Madeline
35c9a09ea5
fix poll in msg create schema 2024-07-09 15:27:24 +10:00
TomatoCake
4a042d0188
Merge branch 'master' into fix/cdn-proxy-path 2024-07-09 05:04:29 +02:00
Puyodead1
bc432a4325
add email verification page 2024-07-08 22:30:41 -04:00
Puyodead1
629451bbfd
fix incorrect error field 2024-07-08 22:10:50 -04:00
TomatoCake
bd66ee0349 Use front end URI instead of API 2024-07-06 17:51:52 +02:00
TomatoCake
8358755eeb Increase minimum char count 2024-07-06 16:02:21 +02:00
TomatoCake
ba1ec9cab4 Fix msg attachment proxy_url when using paths 2024-07-06 15:57:56 +02:00
TomatoCake
cd7641c2ae Fix loading connection settings 2024-07-06 06:47:14 +02:00
TomatoCake
c52d6c49a3 Add new message flags once again 2024-07-05 07:43:50 +02:00
TomatoCake
0ac8888d41 Don't embed links in <> 2024-07-04 09:41:46 +10:00
TomatoCake
5f9c6b01a7 Send position property on guild join 2024-07-04 09:41:23 +10:00
TomatoCake
6ca12cb7fb Sort /channels for gateway consistency 2024-07-04 09:41:23 +10:00
TomatoCake
e116e93693 Add <Channel>.position to public endpoints 2024-07-04 09:41:23 +10:00
TomatoCake
ef13c8c814 Add "email.senderAddress" config 2024-07-04 09:40:49 +10:00
TomatoCake
b7bf2a11ea Fix Postgres column type (hopefully) 2024-07-04 09:40:15 +10:00
TomatoCake
9d27a5138f Prettier -.- 2024-07-04 09:40:15 +10:00
TomatoCake
12cca1b546 Add migration for new user setting props 2024-07-04 09:40:15 +10:00
TomatoCake
0a40776bb3 Fix build by using ts-ignore 2024-06-28 13:05:03 +02:00
TomatoCake
c135de9c86 Fix style + nix? 2024-06-28 12:59:13 +02:00
TomatoCake
a987671e4a "Fix" jimp import typings 2024-06-28 12:43:53 +02:00
TomatoCake
628b094865 running prettier for others 2024-06-28 10:21:32 +02:00
TomatoCake
951ed00805
Merge branch 'master' into feat/local-image-proxy 2024-06-28 10:17:31 +02:00
TomatoCake
16f8a1c7ac Add config value for cache duration 2024-06-28 10:17:24 +02:00
Diana Nilsson
2d8238f286 Add missing entries to UserSettings 2024-06-27 19:00:18 +10:00
TomatoCake
af6e15b9e5 Prettier stuff -.- 2024-06-22 21:06:08 +02:00
TomatoCake
93bb891d79 Fix @ts-expect-error comment after Prettier 2024-06-22 20:50:11 +02:00
TomatoCake
e90f8e88c0 Run Prettier (tabs -> spaces???) 2024-06-22 20:43:54 +02:00
TomatoCake
37bd06e142 Add local image proxy using sharp/jimp pkgs 2024-06-22 20:41:43 +02:00
TomatoCake
aa412e0e60 Remove parent for childs on category deletion 2024-06-05 21:59:29 +02:00
TomatoCake
9e1ec8a673
Ban API compat & Bulk Ban endpoint (#1120)
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2024-06-05 15:19:30 +10:00
Madeline
a3a28f522f
prettier 2024-06-05 15:17:20 +10:00
TomatoCake
ea523d06b7 Fix lint: let -> const 2024-06-05 07:05:30 +02:00
TomatoCake
92dea0e89c Add Bulk Ban endpoint
- /:guild_id/bulk-ban endpoint
- Support multiple required permissions for endpoints (untested as I don't know where those are set)
- New API error BULK_BAN_FAILED
2024-06-05 06:27:39 +02:00
TomatoCake
631788537c API /:guild_id/bans compat
- Fix GET Ban using "ban"/"user" instead of "user_id" in params, making it unusable
- Return a processed user object instead of the raw DB one
- Silently ignore already banned users to prevent duplicate bans in the DB
- Return HTTP 204 on successful bans instead of the raw DB ban object
2024-06-05 06:01:44 +02:00
Puyodead1
939d1bd8d5
add notification_settings object to ready 2024-05-26 16:01:35 -04:00
Puyodead1
ee59ee7e1c
Fix message flags being null 2024-04-14 14:02:22 -04:00
Rory&
29df169c81
Add nix flake to repo (#1111) 2024-02-19 21:09:50 +11:00
BoryaGames
3eb5a3f420
Fix application icons (#1110)
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2024-02-11 10:39:09 +11:00
Puyodead1
105b3de19e
Revert "fix merged_members roles having everyone id"
This reverts commit ae5c71f39b.
2023-12-23 22:55:37 -05:00
Puyodead1
ae5c71f39b
fix merged_members roles having everyone id 2023-12-23 22:16:34 -05:00
Puyodead1
9a286e1f74
add missing license headers 2023-12-17 12:31:02 -05:00
sky
864bf75ef2
what the hell erkin 2023-12-15 08:31:00 +02:00
Puyodead1
6a4fd5fbdb
add new right for creating registration tokens 2023-12-14 22:09:25 -05:00
Puyodead1
a574284e9f
GuildMemberPatch: remove a useless query 2023-12-14 09:36:40 -05:00
Puyodead1
99d9bf563f
Start implementing webhooks 2023-12-10 17:02:27 -05:00
Puyodead1
0a6f6a095d
member projection: select avatar 2023-12-09 14:07:54 -05:00
Puyodead1
9d266f1dba
ensure client_id is specified in authorize post 2023-12-09 13:39:40 -05:00
Puyodead1
c353c4fd39
ensure client_id is provided in authorize 2023-12-09 13:28:08 -05:00
Rory&
6f031dbc93 WORKAROUND: Ignore client-requested file extension for role icons 2023-12-08 20:50:20 +00:00
Rory&
583d9ff407 Fix reacting with custom emojis from same guild requiring USE_EXTERNAL_EMOJIS 2023-12-08 19:48:04 +00:00
Puyodead1
c4701a3299
add components to message create schema 2023-12-06 10:34:53 -05:00
Puyodead1
9c8a80693d
handle possibly null activities in session sort 2023-12-05 16:52:30 -05:00
Puyodead1
e54879e1fe
messageupdate: fix member not being correct format 2023-12-05 13:22:04 -05:00
Puyodead1
b7c4889c63
fix some message update fields being sent when null 2023-12-05 12:34:46 -05:00
Puyodead1
7cf8c68459
typingstart timestamp needs to be seconds 2023-12-05 11:10:12 -05:00
Puyodead1
7b34c70fb8
fix some issues with discord bot libs 2023-11-29 11:08:35 -05:00
Madeline
f202ffec31
Proper error messages for invalid config 2023-11-29 20:55:10 +11:00
Madeline
6bf4637a03
fucking postgres 2023-10-04 23:48:00 +11:00
Madeline
7795f1b36b
refactor channel positions in guild 2023-10-04 23:40:05 +11:00
CyberL1
7ff1ae21f1 Add mobile_network_type to message create schema 2023-09-30 23:46:25 +02:00
Madeline
c802bb9747
Embeds: handle og:sitename 2023-09-16 23:47:32 +10:00
Madeline
e355be8ea3
Fix regression where generic embed handler wouldn't properly send image results 2023-09-16 23:43:23 +10:00
Madeline
add16ab26e
* allow limit=1
* fix GET messages?around order
2023-09-05 23:29:22 +10:00
Puyodead1
8a35664ae6
[fb] remove provider obj, add color 2023-09-03 15:48:55 -04:00
Puyodead1
1612832fc4
add facebook, and add steam fields 2023-09-03 15:28:33 -04:00
Madeline
e64c34adea
Rewrite thumbnail/image generation for embeds 2023-09-03 14:17:11 +10:00
Madeline
fb7409947c
Fix bug in embed handler where getMeta would not return undefined 2023-09-03 13:41:45 +10:00
Madeline
c64a115729
xkcd embed handler and improved generic handler 2023-09-02 23:47:40 +10:00
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