1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 18:21:36 +02:00
Commit Graph

282 Commits

Author SHA1 Message Date
Flam3rboy
c50648ddcc 🚚 move handleFile to cdn 2021-09-19 18:44:49 +02:00
Flam3rboy
75e948b62b 🎨 user is verified by default 2021-09-19 18:43:25 +02:00
The Arcane Brony
157f29536a Fix environment variable name to work on non-Windows platforms 2021-09-18 21:03:23 +02:00
Flam3rboy
fa9f512c90 Merge pull request #375 from TheArcaneBrony/request-logging
Add request logging (with env var: log-requests)
2021-09-18 20:45:30 +02:00
The Arcane Brony
0d41e18065 Add response code white/blacklisting 2021-09-18 20:43:00 +02:00
AlTech98
e5120c0c5b Merge branch 'fosscord:master' into fix-dm 2021-09-18 18:37:06 +02:00
AlTech98
ada95b6c39 Removed ChannelService, more fixes 2021-09-18 18:36:29 +02:00
The Arcane Brony
0d3562de76 Add request logging (with env var: log-requests)
Request logging is enabled when the log-request environment variable is set.
2021-09-18 18:13:15 +02:00
Flam3rboy
e628c92a44 Update connections.ts 2021-09-18 16:24:42 +02:00
The Arcane Brony
55ae0d6ae9 Add /users/@me/connections 2021-09-18 16:11:03 +02:00
Flam3rboy
a3484e64e4 route middleware test option 2021-09-18 11:56:06 +02:00
AlTech98
5d6fa7697a Merge branch 'fosscord:master' into fix-dm 2021-09-18 08:03:52 +02:00
Flam3rboy
a7bf295591 jest automatic tests 2021-09-18 01:50:29 +02:00
Flam3rboy
1e331b7c9d 🎨 use typescript plugin that converts to relative paths 2021-09-18 01:50:20 +02:00
Flam3rboy
69550e535e generate test responses 2021-09-18 01:49:36 +02:00
Flam3rboy
54412a3364 📝 add default route description to all routes 2021-09-18 01:49:17 +02:00
Flam3rboy
181afe7e09 🐛 fix guild create icon 2021-09-18 00:19:53 +02:00
Flam3rboy
859fdd679b 🐛 fix body parse treating null not as undefined (except for icons/avatars) 2021-09-17 23:42:40 +02:00
AlTech98
50ab5e7d49 Fix icon, owner_id change and channel deletion for group DMs 2021-09-17 18:29:02 +02:00
AlTech98
6d0f9abe0d Merge branch 'fosscord:master' into fix-dm 2021-09-17 18:13:02 +02:00
AlTech98
c4cfa42c60 Fix GET /users/@me/channels 2021-09-17 13:59:21 +02:00
Flam3rboy
4003fef534 🐛 fix vanity url 2021-09-16 22:03:30 +02:00
AlTech98
d630f09f80 Implemented DMs and group DMs 2021-09-16 21:33:36 +02:00
AlTech98
0506d40aa1 Dummy sticker-packs routes 2021-09-16 21:31:39 +02:00
Flam3rboy
b446a3110b ⬆️ update package 2021-09-16 20:55:50 +02:00
Flam3rboy
60ee234891 Revert "fix #128"
This reverts commit 8893fd16d9.
2021-09-16 20:49:17 +02:00
Flam3rboy
173f03c596 Revert "fix #129"
This reverts commit 8f862f0e5d.
2021-09-16 20:49:12 +02:00
Flam3rboy
d2d7dd0561 Revert "🚧 webhook"
This reverts commit df2b83ac15.
2021-09-16 20:49:07 +02:00
Flam3rboy
bd9cc4c537 ⬆️ fix + update dependencies 2021-09-16 20:46:22 +02:00
Flam3rboy
df2b83ac15 🚧 webhook 2021-09-14 22:15:55 +02:00
Flam3rboy
8f862f0e5d fix #129 2021-09-14 21:16:15 +02:00
Flam3rboy
8893fd16d9 fix #128 2021-09-14 21:16:04 +02:00
Flam3rboy
37533e28fd Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-14 13:18:32 +02:00
Flam3rboy
8418498a97 Merge pull request #360 from AlTech98/invite
Invite fixes
2021-09-14 13:13:50 +02:00
AlTech98
b17f3c053d Emit INVITE_DELETE 2021-09-14 09:38:52 +02:00
AlTech98
8f68c4abcf Fix invites creation 2021-09-14 09:38:21 +02:00
uurgothat
9b10ab2d0b add store endpoints 2021-09-13 21:22:14 +03:00
AlTech98
7cdcb82ecd Fix #356 2021-09-13 19:25:44 +02:00
Flam3rboy
68eae50a63 Update index.ts 2021-09-13 19:12:19 +02:00
AlTech98
b15a93d120 Emit USER_UPDATE, fix #214 2021-09-13 19:09:01 +02:00
Flam3rboy
8568b3cdce 🐛 fix fosscord.js 2021-09-13 17:51:37 +02:00
Flam3rboy
dcc3ae6a14 🎨 remove unused imports 2021-09-13 17:51:16 +02:00
AlTech98
aa1f1a22a4 Delete attachments of deleted messages, fix #273 2021-09-13 17:32:31 +02:00
Flam3rboy
9b4457424d 🐛 fix In() query 2021-09-13 12:22:59 +02:00
Flam3rboy
9e3bc94e9d 🐛 fix relationship 2021-09-13 12:22:41 +02:00
Flam3rboy
4f1b926d09 🐛 fix dm #321 2021-09-13 01:11:03 +02:00
Flam3rboy
e32bb24fa8 🐛 fix invites: ajv doesn't treat null as undefined 2021-09-13 00:00:11 +02:00
Flam3rboy
33533fc183 Merge branch 'typescript-interface-body-parser+autogenerate-unit-tests+documentation' 2021-09-12 23:32:55 +02:00
Flam3rboy
6ba9c834bd #307 done 2021-09-12 23:28:56 +02:00
Flam3rboy
e2c66a1fe5 🚧 new body parser (bans route) 2021-09-12 21:21:08 +02:00
Flam3rboy
60535f5159 🎨 remove long relatives paths -> short module paths 2021-09-12 21:09:29 +02:00
AlTech98
c073adf3ba Add dummy missing routes 2021-09-12 19:27:29 +02:00
AlTech98
3cd404eb42 Fix relationships get query 2021-09-09 18:32:36 +02:00
Stilic
0bbb1bad5a Fix upload size 2021-09-08 13:34:37 +02:00
Cyber
405a2964da Add token authorization method to swagger openapi 2021-09-04 23:21:14 +02:00
Flam3rboy
0bf59ee28a ⬆️ update test client 2021-09-04 17:59:29 +02:00
Flam3rboy
56d9fa3334 🐛 fix release 2021-09-04 17:39:03 +02:00
AlTech98
c59ccf2176 Added /guilds/:id/voice-states apis 2021-09-04 11:46:46 +02:00
AlTech98
a3c8ab163a Added missing permissions and channel types 2021-09-04 11:43:09 +02:00
Flam3rboy
bb76b07f6d 🐛 fix patch-package 2021-09-04 11:32:11 +02:00
Flam3rboy
e9a8885282 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-04 11:26:47 +02:00
Flam3rboy
cc9f43fb63 🐛 api member add roles -> make sure that roles exist 2021-09-04 11:26:25 +02:00
Flam3rboy
4de2140058 🐛 fix invites 2021-09-04 11:25:10 +02:00
Flam3rboy
8d69c9a871 🐛 fix permissions if user is only member of guild 2021-09-04 11:24:31 +02:00
Flam3rboy
85ef7410b2 ⬆️ update mpath because of a security vulnerability 2021-09-04 11:23:39 +02:00
Flam3rboy
0ef9af4a68 🐛 fix error handler and asset router 2021-09-04 11:23:12 +02:00
xnacly
25060ed06e fixed /discoverable-guilds 2021-09-03 23:31:56 +02:00
xnacly
26cc5ac0f9 added first draft of /discoverable-guilds 2021-09-03 21:40:44 +02:00
xnacly
419b0bbc80 Revert "added big todo list to Guild.ts (big chungus)"
This reverts commit 0f58995182.
2021-09-03 21:36:19 +02:00
xnacly
0f58995182 added big todo list to Guild.ts (big chungus) 2021-09-03 21:33:44 +02:00
xnacly
1211e486f9 replace '@me' with req.user_id in guild join 2021-09-03 21:33:25 +02:00
xnacly
7db26b5952 moved Constants and Errorhandler from api to util 2021-09-03 21:29:17 +02:00
xnacly
afff55cb59 added template for future routes 2021-09-03 21:28:07 +02:00
xnacly
77a87acfe6 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2021-09-03 20:00:21 +02:00
xnacly
787b830a09 fixed 'undefined not found' + error not showing in client 2021-09-03 20:00:19 +02:00
Flam3rboy
0be8c804b4 improve invite generation 2021-09-03 15:48:24 +02:00
Flam3rboy
d5fcb7f971 🐛 fix #311 2021-09-03 15:27:00 +02:00
Flam3rboy
a446837679 🐛 fix member roles + list 2021-09-03 13:23:20 +02:00
Flam3rboy
e2ea701920 guild position update 2021-09-03 05:03:11 +02:00
Flam3rboy
001dbe800c 📝 drop tables script 2021-09-03 04:04:48 +02:00
Flam3rboy
11b2176773 🐛 fix message sending 2021-09-03 04:04:34 +02:00
Flam3rboy
c7ed245433 ⬆️ update dependencies 2021-09-03 03:38:40 +02:00
Flam3rboy
acb5fba488 🐛 fix member + member list 2021-09-03 03:37:55 +02:00
Flam3rboy
11af8531cc 🐛 fix entity missing an id (replace .insert with new Entity().save) 2021-09-02 21:31:44 +02:00
Flam3rboy
562a53d6bb add user_id field to Member 2021-09-02 19:50:05 +02:00
Flam3rboy
c410fbcc0d 🎨 update openapi title 2021-09-02 10:27:33 +02:00
Flam3rboy
f056885fb0 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-02 00:14:34 +02:00
Flam3rboy
854239e0e1 ⬆️ update dependencies 2021-09-01 23:35:20 +02:00
Flam3rboy
cba341a6d6 🐛 fix entity types and projection 2021-09-01 23:34:55 +02:00
Flam3rboy
1a76c663d2 generate open api schema based on body and db entities 2021-09-01 23:33:14 +02:00
xnacly
a1a859b1c1 added /login unittest 2021-09-01 22:14:06 +02:00
xnacly
5618e748b4 see parent 2021-09-01 22:13:27 +02:00
xnacly
26be2f9a1d fixed globalSetup for jest 2021-09-01 22:10:44 +02:00
Flam3rboy
44ea23f648 Merge pull request #301 from fosscord/feat--DiscordApiErrors
Use discord api errors and check limits
2021-09-01 11:31:59 +02:00
Flam3rboy
7ff5e14887 use DiscordApiErrors and check limits 2021-09-01 11:27:52 +02:00
Flam3rboy
df1d633c4b Merge pull request #300 from fosscord/typeorm 2021-09-01 10:47:00 +02:00
Flam3rboy
f654635d6a Merge branch 'typeorm' into typeorm 2021-08-31 18:10:36 +02:00
Flam3rboy
717b722950 Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm 2021-08-31 17:58:49 +02:00
Flam3rboy
cc8c5359ce 🐛 db query fixes 2021-08-31 17:58:47 +02:00
Flam3rboy
d073c52f29 channel recipients 2021-08-31 17:58:28 +02:00
Flam3rboy
9400fc8fb8 Channel utility methods in entity 2021-08-31 17:57:44 +02:00
Flam3rboy
1c897af1be fix member roles 2021-08-31 17:57:19 +02:00
AlTech98
7baa2fbe52 Created list of all possible api errors and made them throwable in routes code 2021-08-31 17:56:38 +02:00
Flam3rboy
42a50c0674 use insert instead of save 2021-08-31 17:56:33 +02:00
Flam3rboy
f59fae674d 🐛 fix message sending 2021-08-31 17:55:23 +02:00
Flam3rboy
e508282a55 typeorm error handler 2021-08-31 17:54:57 +02:00
AlTech98
89304ff47b Implemented voice apis #127 and #78 2021-08-30 21:12:13 +02:00
xnacly
1d7d3b3022 added first unittests for api endpoints 2021-08-30 16:23:19 +02:00
xnacly
9e4c7d119b added setup for jest tests 2021-08-30 16:21:54 +02:00
xnacly
5e2dd88908 added jest config, installed supertest 2021-08-30 16:12:05 +02:00
xnacly
fb0e79afa3 removed jest config 2021-08-30 16:11:39 +02:00
xnacly
99c125470f added db to gitignore 2021-08-30 16:11:34 +02:00
xnacly
12a227d3fc fixed wrong statuscode in docs 2021-08-30 16:10:58 +02:00
xnacly
382fc62f5a fixed translation path to display correct error msg 2021-08-30 13:44:52 +02:00
Flam3rboy
584d4a039c 🚧 typeorm 2021-08-30 12:15:06 +02:00
Flam3rboy
eb6efd14c1 only local rate limit to prevent to much pressure on the database 2021-08-30 12:14:32 +02:00
Flam3rboy
bee6f71298 🐛 convert bigint -> string 2021-08-29 17:12:46 +02:00
Flam3rboy
be238a89b9 fix login register + message 2021-08-29 16:58:46 +02:00
Flam3rboy
7674149085 fix rate limit 2021-08-29 16:58:23 +02:00
Flam3rboy
e99008a1a5 typeorm api rewrite done 2021-08-29 00:03:40 +02:00
EMRE ÇELİK
5c92a8fb99 TR 2021-08-27 23:28:55 +03:00
Flam3rboy
0ecc5d8c0e 🚧 api 2021-08-27 11:10:42 +02:00
Flam3rboy
cee7908def Merge branch 'master' into typeorm 2021-08-24 17:36:37 +02:00
Flam3rboy
a567551c8a 🚧 api 2021-08-24 16:35:04 +02:00
Flam3rboy
7fa8bd9e10 test 2021-08-23 03:50:58 +02:00
Flam3rboy
3bb044d704 Merge pull request #278 from daantje1/patch-2 2021-08-22 13:21:42 +02:00
Daan Schenkel
6b29a6a0ef even more dutch 2021-08-22 13:21:10 +02:00
Daan Schenkel
cab6bab649 Add more dutch translations :D 2021-08-22 13:17:35 +02:00
Lukas Does Dev
0c20d2dc15 Fix content security policy policy 2021-08-21 22:30:42 +03:00
Flam3rboy
f711a0411c 🚧 typeorm 2021-08-21 16:47:22 +02:00
Flam3rboy
ec83db3d4e 🐛 fix vanity url 2021-08-19 21:28:57 +02:00
Flam3rboy
c4896b7f55 revert 2cff55f 2021-08-18 16:10:11 +02:00
Flam3rboy
35702adf50 🐛 update build script 2021-08-18 13:47:31 +02:00
Flam3rboy
95d7084887 🐛 fix #267 2021-08-18 12:41:44 +02:00
Flam3rboy
e214c71a79 🐛 fix guild channel reorder 2021-08-18 12:33:33 +02:00
Flam3rboy
9d305c335b 🔊 opcode logger 2021-08-18 11:56:30 +02:00
Flam3rboy
0721484a93 add default_auto_archive_duration to channel 2021-08-18 11:53:22 +02:00
Flam3rboy
31d70849bb 🚑 user settings route 2021-08-18 11:53:03 +02:00
Flam3rboy
9e2c6359eb fix #199 2021-08-18 11:48:51 +02:00
Flam3rboy
9ab8fc8e6e 🐛 fix findOneAndUpdate 2021-08-18 11:47:28 +02:00
Flam3rboy
bf8718489e fix #199 2021-08-17 22:57:30 +02:00
Flam3rboy
d8b01058b3 🎨 clean up 2021-08-17 22:42:16 +02:00
Flam3rboy
077050b71c message mention parsing 2021-08-17 22:41:21 +02:00
Flam3rboy
65157aac9c 🔊 verbose error handler 2021-08-17 20:37:13 +02:00
Flam3rboy
678ffc83ea 🐛 fix login route 2021-08-17 20:36:57 +02:00
Flam3rboy
cf00c4787d delete finished todos 2021-08-16 17:42:17 +02:00
Flam3rboy
45f89d4531 update auth middleware 2021-08-16 15:07:09 +02:00
Flam3rboy
8a197bbeaa update Rate Limit with new event transmission 2021-08-16 15:06:31 +02:00
Flam3rboy
04072b60e8 🐛 build bundle 2021-08-15 22:36:35 +02:00
Flam3rboy
04355a6661 🐛 fix bundle postinstall 2021-08-15 22:32:57 +02:00